Error resolving template [xxx], template might not exist or might not be exist

Springboot+thymeleaf+mybatis 抛Error resolving template [xxx], template might not exist的异常

原因是我们在pom.xml增加的以下内容导致的,以下内容中src/main/resources这项中没有把你的html文件包括进去,懒一点的做法(**/*.*),

 
   


${project.build.directory}/classes
src/main/resources
true

**/*.yml
**/*.xml



${project.build.directory}/classes
src/main/java

**/*.*
**/*.xml


还有增加整段内容的目的是为了解决另一个问题,扫描不到mybatis的mapper.xml文件(在调用Mapper层方法时报错:Invalid bound statement (not found)),增加在最后面的之间

 

 

转载于:https://www.cnblogs.com/freestudy/p/10348856.html

你可能感兴趣的:(Error resolving template [xxx], template might not exist or might not be exist)