Idea中SpringBoot引入thymeleaf没有提示

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33833327/article/details/81364020

问题描述:

最近使用Idea搭建SpringBoot时,用到了 thymeleaf,但是出现了点问题:输入th: 代码有没有提示。

问题如图所示:

这里写图片描述

解决方法:

文档开头加上这个就有提示了。

<html xmlns:th="http://www.thymeleaf.org">

猜你喜欢

转载自blog.csdn.net/qq_33833327/article/details/81364020