首页 > 其他分享 >Spring Tool 4 安装 Thymeleaf 3.0 插件

Spring Tool 4 安装 Thymeleaf 3.0 插件

时间:2022-10-03 14:33:54浏览次数:72  
标签:插件 Spring Tool 点击 thymeleaf 下载

目录

参考资料

说在前面

注意:thymeleaf-extras-eclipse-plugin 插件3.0.1版本仅支持spring tool suite4(4.7.1版本),不保证 4.8 以上生效.

最小要求

  • Java 8
  • An Eclipse IDE based on 2019-06 or newer

thymeleaf-extras-eclipse-plugin 插件3.0.1版本 已经在企业版和 Java Web Developers bundle from the Eclipse installer以及 Spring Tool Suite 4.7.1测试完成。 Spring Tool Suite 4.8.0+ 修改了该插件构建的 the HTML editor, 所以这些版本不保证生效.

  • Thymeleaf 3 项目

经测试 eclipse 最新版该插件并不好用!

步骤

1.下载 Spring Tool 4.7.1

点击 下载链接 可直接下载 Spring Tool 4.7.1

2.下载 thymeleaf 的 eclipse 插件

点击下载链接可直接下载 3.0.1 版本的zip,以下步骤仅是为了记录(如无需要则可跳过)。

  1. 访问 https://github.com/orgs/thymeleaf

  2. 输入“thymeleaf-extras-eclipse-plugin”查找
    image

  3. 点击左侧 Release
    image

  4. 选择合适版本下载
    image

2.打开 STS - Help - Install New Software...

image

3.点击【Add...】-【Archive...】

image

4.勾选插件并划掉 Contact all update sites during install to find required software

image

5.点击【Next】

image

6.选择“I accept the terms of the license agreement”并点击【Finish】

image

7. 右下角显示安装进度

image

8.弹出选择信任框,点击Install anyway

image

9.重启

image

10.验证

【Help】-【Eclipse Marketplace...】-【Installd】
image

html 文件增加 “xmlns:th="http://www.thymeleaf.org"” 然后使用快捷键【Alt + /】:
image

使用

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head> 
    <title>Getting Started: Serving Web Content</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <p th:text="'Hello, ' + ${name} + '!'" />
</body>
</html>

如果没有提示则,在【Window】-【Preferences】-【Web】-【HTML Files】-【Editor】-【Content Assit】进行顺序调整:
image

标签:插件,Spring,Tool,点击,thymeleaf,下载
From: https://www.cnblogs.com/lihw-study/p/16748544.html

相关文章

  • springboot常见错误
    错误1:运行项目后报如下错误解决方案报错2:​​Failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile(default-compile)onprojectsb​......
  • gradle安装、配置,使用命令构建spring boot项目
    安装#下载到本地直接解压#配置环境变量GRADLE_HOMEGRADLE_USER_HOMEPATH#打开cmd:gradle-videa配置打包常用命令#cmd进入项目根路径gradlewbuildgradlewcleangradleb......
  • Redis入门(四):springboot整合redis
    案例一​​demo​​​为​​chnx/springboot/redis01​​创建springboot项目,导入redis依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>s......
  • Vue2 插件
    概述Vue的插件就是一个js文件,里面允许我们完成一些特定的功能。使用创建一个插件plugins.jsexportdefault{install(Vue){//全局过滤器Vue.filt......
  • vcftools如何在Linux系统中安装
    这里,记录一下vcftools的安装教程。1.下载​​https://vcftools.github.io/examples.html​​下载到本地,上传到服务器中。2.解压缩unzipvcftools-vcftools-v0.1.16-18-g......
  • 【持久层框架】- SpringData - JPA
    SpringData-JPA......
  • Spring自学日志01-IOC(控制翻转)
    目录一、IOC的基本概念和底层原理1.1、什么是IOC?1.1.1、SpringIOC容器1.2、IOC底层原理1.2.1、IOC容器1.2.2、IOC容器装配Bean的方式1.2.3、IOC容器装配Bean的操作1.2.3.......
  • SpringSecurity异常处理器
    原理在SpringSecurity中,在认证或者授权的过程中出现的异常会被ExceptionTranslationFilter捕获到,在ExceptionTranslationFilter中会去判断这异常是认证失败还是授权失败产......
  • 第一季:10简单的谈一下SpringMVC的工作流程【Java面试题】
    第一季:10简单的谈一下SpringMVC的工作流程【Java面试题】​​前言​​​​推荐​​​​第一季:10简单的谈一下SpringMVC的工作流程​​​​题目​​​​分析​​​​最后​​......
  • 太棒了,这才称得上 Jupyter Notebook 五大效率插件
    ​​JupyterNotebook​​​是一个很棒的教学、探索和编程环境,但其功能不足也是出了名的。幸好,有许多方法可以改进这个不错的工具,如​​JupyterNotebook​​扩展工具。......