thymeleaf TH语法无效
同样引入文件 TH 语法无效
<!DOCTYPE html>
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<title>管理系统首页</title>
<meta name="keywords" content="管理系统首页">
<meta name="description" content="管理系统首页">
<!--[if lt IE 9]>
<meta http-equiv="refresh" content="0;ie.html"/>
<![endif]-->
<link th:href="@{favicon.ico}" rel="stylesheet"/>
<link th:href="@{/assets/css/bootstrap.min.css}" rel="stylesheet"/>
<!-- Bootstrap v3.3.7 -->
<link href="/assets/css/bootstrap.min.css" rel="stylesheet">
<link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
<link th:href="@{/css/animate.css}" rel="stylesheet"/>
<link th:href="@{/css/style.css}" rel="stylesheet"/>
<style type="text/css">
.nav > li:hover .dropdown-menu {display: block;}
#content-main.max { height: calc(100% - 110px); overflow: hidden; width: 100%; height: 100%; left: 0px; position: absolute; top: 0px; z-index: 9998; margin: 0; }
</style>
</head>
<body>
<div>
<h2>Context Path = '<span th:text="${#request.getAttribute('base')}">No Value</span>'</h2>
</div>
<div>
<h2>From Action name=<span th:text="${obj.name}">name</span>, age=<span th:text="${obj.age}">age</span></h2>
</div>
</body>
</html>