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>