基于懒,花了点时间研究了一下 SpringBoot,个人觉得也就是一个懒人版的 SS 框架
我的 demo git 地址:http://git.oschina.net/zgdhd/my-springboot 希望里面的注释能帮助初学的师弟
问题:
打包成 jar 在终端运行启动后访问页面提示找不到 thymeleaf 模版!!
Exception:
14:13:58.749 logback [http-nio-8080-exec-1] INFO org.thymeleaf.TemplateEngine - [THYMELEAF] TEMPLATE ENGINE INITIALIZED
14:13:58.840 logback [http-nio-8080-exec-1] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-8080-exec-1] Exception processing template "/bug": Error resolving template "/bug", template might not exist or might not be accessible by any of the configured Template Resolvers
14:13:58.847 logback [http-nio-8080-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path []