springboot默认不支持jsp
可以使用模板引擎thymeleaf
模板引擎:将网页分为两个部分:
1、模板
2、数据
org . springframework. boot groupId> spring- boot-starter-thymeleaf artifactId>
通过ThymeleafProperties配置得知,要使用thymeleaf的话,只需要把文件放入"classpath:/templates/"
目录下,文件后缀为".html"格式
使用时在application.properties文件中加上
#设置thymeleaf缓存为false。关闭thymeleaf缓存 spring.thymeleaf.cache-false
test01.html
thymeleaf测试
springboot!


