3
我想在我的Thymeleaf模板中使用Spring主題解析器的功能(請參閱:here)。使用Spring的主題解析器和主題與Thymeleaf模板
什麼是Thymeleaf相當於spring:theme JSP標籤?
下面見JSP代碼示例:
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<html>
<head>
<link rel="stylesheet" href="<spring:theme code='styleSheet'/>" type="text/css"/>
</head>
<body style="background=<spring:theme code='background'/>">
...
</body>
</html>