【发布时间】:2019-03-10 06:37:45
【问题描述】:
<html>
<head>
<title>Reading List</title>
<link rel="stylesheet" th:href="@{/style.css}"></link>
</head>
在我开发一个 Spring Boot 项目时,根据一些要求,我想通过使用 thymeleaf 添加/加载一些静态资源内容。在加载/引用 css 文件时,我使用的是 thymeleaf 标签。
th:href="@{/style.css}
谁能解释一下我们为什么使用表达式'@'?
【问题讨论】:
-
我的回答有帮助吗?见stackoverflow.com/help/someone-answers
标签: spring-boot thymeleaf