请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

提问者 小鱼vv 2020-04-09 20:28:49

https://img1.sycdn.imooc.com//szimg/5e8f14ee097820e618640735.jpg就是这个错误

0 回复 有任何疑惑可以回复我~
廖师兄助理 2020-04-09 13:42:42

你好,请把报错信息截图发过来,我给你看下


0 回复 有任何疑惑可以回复我~
  • 提问者 小鱼vv #1
    020-04-09 20:25:39.298 ERROR 23832 --- [nio-8081-exec-1] o.a.c.c.C.[.[.[.[dispatcherServlet]      : Servlet.service() for servlet [dispatcherServlet] in context with path [/sell] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [pay/create], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
    
    报错信息截图发在单独的回复里啦
    回复 有任何疑惑可以回复我~ 2020-04-09 20:29:40
  • 提问者 小鱼vv #2
    已解决!可能是因为我和师兄的springboot版本不一样,在yml文件里写入 freemarker:
        request-context-attribute: req
        suffix: .ftl
        content-type: text/html; charset=utf-8
        cache: false
        template-loader-path: classpath:/templates
        check-template-location: true
        expose-request-attributes: false
        expose-session-attributes: false
    即可
    回复 有任何疑惑可以回复我~ 2020-04-09 22:17:37
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信