hanker

SPRING - 405 Error 본문

SPRING/SPRING-ERROR

SPRING - 405 Error

hanker 2020. 9. 20. 00:39

1. Spring Security 적용 후 서버에 데이터 전송시 405 에러 발생

 - Google 검색 결과 RequestMethod, ajax Type을 맞춰주라고 하는데, 필자는 이상이 없었음.

 - 계속해서 구글링 결과

 

 - Spring Security를 적용하게 되면 csrf 설정을 해제해야됨을 알았음

 

<security-context.xml 설정>

<security:csrf disabled="true"/>