Thymeleaf使用小总结

html页面引入 xmlns:th="http://www.thymeleaf.org"


<html lang="en"  xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Titletitle>
head>
<body>
<span th:text="hello">span>
<hr/>
<span th:text="${msg}">span>
<hr/>

<input th:value="${msg}">



<span th:text="${#strings.isEmpty(msg)}">span>

<span th:if="${msg} == 'value'">span>
body>
html>

你可能感兴趣的:(SpringBoot,Java,Web)