1、IDEA 导入的spring boot项目 不能启动, XxxApplication也没图标显示
右击项目中的pom.xml 选择 Add Maven即可
2、Springboot+thymeleaf+mybatis 抛Error resolving template [xxx], template might not exist的异常
原因是我们在pom.xml增加的以下内容导致的,以下内容中src/main/resources这项中没有把你的html文件包括进去,懒一点的做法(<include>**/*.*</include>)
<resources>
<resource>
<targetPath>${project.build.directory}/classes</targetPath>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.yml</include>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<targetPath>${project.build.direct