springboot引入springSecurity无法post提交表单

参考https://blog.csdn.net/shawearn1027/article/details/71119587

表单中添加<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>  隐藏域

猜你喜欢

转载自www.cnblogs.com/white-knight/p/8862318.html
今日推荐