springboot 页面使用thymeleaf语法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Gr_lbxx/article/details/82154354

<!DOCTYPE html>

引入这个就可以使用thymeleaf语法
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<label th:texts="#{login.username}">username:</label><input type="text"/><br>
密码:<input type="password"><br>
<button>登陆</button>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/Gr_lbxx/article/details/82154354