【发布时间】:2021-06-05 15:33:56
【问题描述】:
我有以下代码循环遍历国家列表并创建 href 链接
<div class="container" th:each="country: ${countryList}">
<a th:href="${country.countryAbbr}"><div clss="row" th:text="${country.country}"></div></a>
</div>
当前页面url为“localhost:8080/directory”,生成的url显示为
“本地主机:8080/us”
如何让网址显示为“localhost:8080/directory/us”
我希望将“我们”添加到页面的当前 url。
【问题讨论】:
标签: thymeleaf