在学习完spring security后,做了一个小项目,登陆的时候没有任何问题,在做退出操作时总是出现404无法访问的错误。
在经过2天的不懈努力下,总算解决了,总结下我所知道的几点!
1, whether to close the csrf cross-domain request, open during the default
<!-- 2.4关闭CSRF(跨域请求),默认是开启的 -->
<security:csrf disabled="true"/>
2, static files path problem, it is best to static pages into webapp
3, tomcat set the access path to / logout I solved the problem, which is to put the project under the root path
4, all with all the best path absolute path, for example: http: // localhost: 8080 / manageraa / show