thymeleaf通过cookie动态设置路径
2019-07-10 本文已影响0人
jenye_
<img style="width:40px;height:40px;" src="images/icon-dp.png"
th:each="cookie :${#httpServletRequest.getCookies()}"
th:if="${cookie.getName().equals('zhihuid')}"
th:src="@{'/img/upfile/'+${cookie.getValue()}+'dp.jpg'}"
class="icon-dp">