SpringBoot是默认不支持JSP的
JSP本质上是一个Servlet,需要后台加载,比较慢
thymeleaf不会
1.thymeleaf需要
org.springframework.boot spring-boot-starter-thymeleaf
2.html文件需要放在resources/templates/下面,其中主要HTML文件需要导入thymeleaf的命名空间,而且html的访问只能通过Controller
Title
success
3.thymeleaf模板引擎默认开启缓存,所以修改HTML文件刷新页面并没有效果,需要关闭
spring.thymeleaf.cache=false
4.thymeleaf有很多属性,需要通过th:*,例如



