生活随笔
收集整理的這篇文章主要介紹了
spring boot 之session的总结
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
controller層
request.getSession().setAttribute("accountName", account.getUsername()); HTML
<a th:text="${session.accountName}">
controler層
request.getSession().setAttribute("report",report); HTML
<a th:text="${session.report.tm}"></a>
controller層
request.getSession().setAttribute("hebeiZbggs", hebeiZbggs); HTML
<table width="100%" border="0" cellpadding="0" cellspacing="0"><th:block th:each="hebeiZbgg : ${session.hebeiZbggs}"><tr><td width="33" height="10" align="right"><img th:src="@{../img/333.png}" width="25" height="25"></td><td><a th:href="@{/detail(str=${hebeiZbgg.toStringC()})}"
class="a3" th:text="${hebeiZbgg.tm}"></a></td></tr><tr bgcolor="#E3EDF6"><td height="10" align="center"> </td><td
class="txt1">
發(fā)布時(shí)間:<span
class="txt" th:text="${hebeiZbgg.fbsj}"></span> &
nbsp;地域:<span
class="txt" th:text="${hebeiZbgg.cgrdz}">石家莊市裕華區(qū)雅清街30號(hào)</span> &
nbsp;采購人:<span
class="txt" th:text="${hebeiZbgg.cgrmc}">河北省環(huán)境監(jiān)測(cè)中心</span></td></tr></th:block>
</table>
?
轉(zhuǎn)載于:https://www.cnblogs.com/wf1647790534/p/9802538.html
總結(jié)
以上是生活随笔為你收集整理的spring boot 之session的总结的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。