V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
umaru1993
V2EX  ›  Java

萌新求问 thymealeaf 的使用问题

  •  
  •   umaru1993 · 2019-08-19 12:16:01 +08:00 · 2331 次点击
    这是一个创建于 1705 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <img id="codeImg" th:src="@{/register/${session.picRandomNum}/getPicCode}" style="cursor: pointer;"/>
    ${session.picRandomNum}这种情况下 session 里面的值要怎样才能取出来呢?本地浏览器一直取到的是${session.picRandomNum}这样一段字符串,有遇到过的大佬抬一手吗,谢谢蛤!萌新第一次使用 thymeleaf :D
    2 条回复    2019-08-19 14:10:34 +08:00
    JQZhang
        1
    JQZhang  
       2019-08-19 12:54:54 +08:00
    ${#httpSession.picRandomNum}
    umaru1993
        2
    umaru1993  
    OP
       2019-08-19 14:10:34 +08:00
    @JQZhang 谢谢大佬
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5096 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:42 · PVG 13:42 · LAX 22:42 · JFK 01:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.