下载插件:https://github.com/thymeleaf/thymeleaf-extras-eclipse-plugin/releases
解压插件,将插件文件夹命名为thymeleaf,只保留features和plugins目录,将thymeleaf文件夹复制到sts安装目录中的dropins中,重启sts,
配置schema,下载:http://www.thymeleaf.org/xsd/thymeleaf-extras-dialect-2.1.xsd
在sts中的XML Catalog中添加thymeleaf-extras-dialect-2.1.xsd
在html中添加
<html xmlns:th="http://www.thymeleaf.org">