thymeleaf页面能出来数据 但是一直报红

右击Settings 输入inspections单词 然后在右侧框中输入thy 把后面的那个√去掉就行了

第一步 加入thymeleaf 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
然后在html页面导入
<html lang="en" xmlns:th="http://www.thymeleaf.org">
就可以了
浙公网安备 33010602011771号