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">

就可以了

posted @ 2022-03-09 17:06  秃头少女and战战  阅读(313)  评论(0)    收藏  举报