-
<李>
李> <李>
李> <李>
李>
<前> #,Check that 从而template exists before rendering 它。 spring.thymeleaf.check-template=true #,Check that 从而templates 位置存在。 spring.thymeleaf.check-template-location=true #,Content-Type value  written 用HTTP 反应。 spring.thymeleaf.content-type=text/html #,Enable Thymeleaf  view resolution for Web 框架。 spring.thymeleaf.enable=true #,Template files 编码。 spring.thymeleaf.encoding=utf - 8 #,Comma-separated list  of view names that should be excluded 得到解决。 spring.thymeleaf.exclude-view-names=指数 #,Prefix that  gets prepended 用view names when building a URL。 spring.thymeleaf.prefix=类路径://模板 spring.thymeleaf.suffix=. html #,Template mode 用be applied 用模板只阅读also StandardTemplateModeHandlers。 HTML5 spring.thymeleaf.mode=#,Disable template 缓存。 spring.thymeleaf.cache=false >之前
二,在pom.xml添加依赖
<前> & lt; dependency> & lt; groupId> org.springframework.boot & lt; artifactId> spring-boot-starter-thymeleaf & lt;/dependency> >之前
三、在资源目录下创建模板文件夹,并添加模板html
之前
五、运行结果