1、方式一,插件方式安装
1.1 Thymeleaf的Github官方地址
https://github.com/thymeleaf/thymeleaf-extras-eclipse-plugin
这里我们使用的是Thymeleaf插件的最新版本3.0.1
1.2 下载
这里要注意:如果是使用Spring Tool Suite(STS)来安装Thymeleaf插件的话,Thymeleaf插件支持的Spring Tool Suite最高版本是4.7.1,再高可能不生效
1.2.1 在线安装地址:
https://www.thymeleaf.org/eclipse-plugin-update-site/
1.2.2 离线安装包下载地址:
https://github.com/thymeleaf/thymeleaf-extras-eclipse-plugin/releases
1.3 安装
1.3.1 工具栏-Help-install from Site...
1.3.2 填写安装信息
1.3.3 选择好之后,点击OK,Next >
由于我这里在线安装怎么着都不行,因此选择了离线安装包,选中要安装的部分,点击"Next > "
下一步
下一步
等待安装完毕
重启编辑器即可
2、方式二,插件市场在线安装
2.1 打开插件市场
工具栏-Eclipse Marketplace...
2.2 搜索"thymeleaf"
2.3 安装
点击按钮"Install"进行安装即可
等待安装完毕,重启编辑器即可