哦,我有解决办法。我错过
{#httpServletRequest.requestURI}了文档中的。这是为我工作的解决方案:
<a th:href="@{__${#httpServletRequest.requestURI}__/store/__${store.name}__}">Click to More</a>//Will produce: http://localhost:8080/project/web/category/mobiles/store/samsung
哦,我有解决办法。我错过
{#httpServletRequest.requestURI}了文档中的。这是为我工作的解决方案:
<a th:href="@{__${#httpServletRequest.requestURI}__/store/__${store.name}__}">Click to More</a>//Will produce: http://localhost:8080/project/web/category/mobiles/store/samsung