最近学习Spring Boot微服务开发,参考一个很不错的微信公众号学习,分享一个链接:点击打开链接 博主:纯洁的微笑
开始的入门学习很简单,很简单的搭建过程,很精简的项目依赖配置,完成很简单的 HelloWorld!
接下来遇见一个小坑,这里记录一下,供大家学习参考:
SpringBoot推荐前台使用ThymeLeaf代替以往的jsp页面,具体的优势大家自己体验吧;
我遇到的问题是,在使用ThymeLeaf方式,Controller转发定位不到正确的html页面,错误内容如下:
Console显示:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "index", template might not exist or might not be accessible by any of the configured Template Resolvers
at org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:24