1> 打开eclipse的插件安装,Help—>Installations new SoftWare—>add 2> 插件地址为: http://www.thymeleaf.org/eclipse-plugin-update-site/ 3> 最后重启STS即可。 note:HTML文件添加DTD约束 <html xmlns:th="http://www.thymeleaf.org">