解决方法: 在地址栏加上_crfn
html 加
<meta name="_csrf" th:attr="content=${_csrf.token}"/>
js 加
var token = $("meta[name='_csrf']").attr("content");
//URL url:"hello?", 改成
url:"hello?_csr",
解决方法: 在地址栏加上_crfn
html 加
<meta name="_csrf" th:attr="content=${_csrf.token}"/>
js 加
var token = $("meta[name='_csrf']").attr("content");
//URL url:"hello?", 改成
url:"hello?_csr",