IDEA SpringBoot项目中使用Thymeleaf无效--解决方法

检查pom.xml配置文件中是否引入了Thymeleaf的依赖,如图。

在这里插入图片描述

检查html文件中是否引入了命名空间,且无误

在这里插入图片描述

检查IDEA是否启用了Thymeleaf的插件

在这里插入图片描述

以上三步都完成了,就可以使用了。

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_43224762/article/details/110537901