복붙노트

[SPRING] Spring 4.0 + Security 3.2 + j_spring_security_check의 Java 구성

SPRING

Spring 4.0 + Security 3.2 + j_spring_security_check의 Java 구성

EchoController, AppService, AppDao 및 UserBean을 건너 뜁니다.

감사.

해결법

  1. ==============================

    1.3.2 버전에서 게시 매개 변수가 j_username에서 username으로, j_password에서 password로 변경되었습니다. 로그인 URL도 / j_spring_security_check에서 / login으로 변경되었습니다.

    3.2 버전에서 게시 매개 변수가 j_username에서 username으로, j_password에서 password로 변경되었습니다. 로그인 URL도 / j_spring_security_check에서 / login으로 변경되었습니다.

    이 변경이 구현 된 이유에 대한 설명은 다음 링크를 참조하십시오. http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#jc-httpsecurity. 변경 사항은 다음과 같습니다.

    그리고 이것은 로그인 양식의 예입니다 : http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#jc-form

  2. from https://stackoverflow.com/questions/20704656/javaconfiguration-for-spring-4-0-security-3-2-j-spring-security-check by cc-by-sa and MIT license