idea中无法引入thymeleaf模板

我在idea的项目中引入thymeleaf模板时,已经在pom.xml中引入了依赖

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>

也在setting中确认了thymeleaf是打了√的
图片说明
但是在html文件中引入thymeleaf的命名空间时却是灰色的,也无法用thymeleaf的语法
图片说明

浏览器显示如下
图片说明
请问这是什么原因导致的呢?

这name你在Controller里放到session里了吗

奇葩了,今天下午写着写着之前写的html又可以导入 xmlns:th="http://www.thymeleaf.org" 命名空间,新建了一个html就导入为灰色了

是不是把th:text放在p标签里面,让其替代

里面的值