spring MVC &{} 取不到值的解决方案

<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>  取不到值。

需要加th,更正如下:

<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>

 

posted on 2017-07-18 11:28  丛林摄影狮  阅读(451)  评论(0编辑  收藏  举报

导航