美文网首页
thymeleaf通过cookie动态设置路径

thymeleaf通过cookie动态设置路径

作者: jenye_ | 来源:发表于2019-07-10 09:11 被阅读0次
<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">

相关文章

网友评论

      本文标题:thymeleaf通过cookie动态设置路径

      本文链接:https://www.haomeiwen.com/subject/edqckctx.html