<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/> 取不到值。
需要加th,更正如下:
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/> 取不到值。
需要加th,更正如下:
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
转载于:https://www.cnblogs.com/orziii/p/7199553.html