首先需要在html里加上如下代碼開啟thymeleaf標簽庫
<html lang="en" xmlns:th="http://www.thymeleaf.org">
lang="en"是html5需要的
常用表達式:
${...} 變量表達式
*{...} 選擇表達式
#{...} 消息文字表達式
@{...} 鏈接url表達式
#maps 工具對象表達式
常用標簽:
th:action 定義后台控制器路徑
th:each 循環語句
th:field 表單字段綁定
th:id div標簽中的ID聲明,類似HTML標簽中的ID屬性
th:if 條件判斷語句
th:include 布局標簽,替換內容到引入文件
th:fragment 布局標簽,定義一個代碼片段,方便其他地方引用
th:object 替換對象
th:src 圖片類地址引入
th:text 顯示文本
th:value 屬性賦值
常用函數:
#datas 日期函數
#lists 列表函數
#arrays 數組函數
#strings 字符串函數
#numbers 數字函數
#calendars 日歷函數
#objects 對象函數
#boots 邏輯函數
idea集成Rest Client:
把HTTP Client那個選項勾選上就可以了

在Tools上選擇Test RESTful web service 打開

出現如下界面就成功了

