전자정부프레임워크 4.1.0 시큐리티 간소화 설정 에러
- 작성자 :
- w****d
- 작성일 :
- 2023-04-18 15:02:34
- 조회수 :
- 1,257
- 구분 :
- 개발환경 / 4.1
- 진행상태 :
- 완료
Q
시큐리티 간소화 설정 후
서버 실행 시
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChainProxy': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: A universal match pattern ('/**') is defined before other patterns in the filter chain, causing them to be ignored. Please check the ordering in your <security:http> namespace or FilterChainProxy bean configuration
에러 발생하네요
context-security.xml 의 schemaLocation 도 egov-security-4.1.0.xsd 로 변경하였고
설정도
https://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte4.1:fdl:server_security:xmlschema
와 같이 하였습니다.
EgovWebApplicationInitializer.java 파일도 수정했습니다.
혹시 제가 잘못설정하는게 있나요 ..
아니면 참고할만한게 있을까요
서버 실행 시
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChainProxy': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: A universal match pattern ('/**') is defined before other patterns in the filter chain, causing them to be ignored. Please check the ordering in your <security:http> namespace or FilterChainProxy bean configuration
에러 발생하네요
context-security.xml 의 schemaLocation 도 egov-security-4.1.0.xsd 로 변경하였고
설정도
https://www.egovframe.go.kr/wiki/doku.php?id=egovframework:rte4.1:fdl:server_security:xmlschema
와 같이 하였습니다.
EgovWebApplicationInitializer.java 파일도 수정했습니다.
혹시 제가 잘못설정하는게 있나요 ..
아니면 참고할만한게 있을까요
환경정보
-
- OS 정보 : window 11
- 표준프레임워크 버전 : egovframework 4.1.0
- JDK(JRE) 정보 : 1.8
- WAS 정보 : Tomcat 8.5.39
- DB 정보 : mariaDb
- 기타 환경 정보 :
A
안녕하세요.
표준프레임워크 센터입니다.
표준프레임워크에서 제공하는
시큐리티 간소화 서비스는
복잡한 시큐리티 설정에 대해
간편하게 구성하여 사용하는데 목적이 있습니다.
다만 간편한 사용에 반해
확장에는 제한이 있을 수 있습니다.
실제 적용 예시는
공통컴포넌트 All-in-one 템플릿에서
다음 시큐리티 간소화 설정 파일을 참고하시면 됩니다.
/src/main/resources/egovframework/spring/com/context-security.xml
pom.xml에 다음의 의존성도 추가해 주셔야 합니다.
감사합니다.
표준프레임워크 센터입니다.
표준프레임워크에서 제공하는
시큐리티 간소화 서비스는
복잡한 시큐리티 설정에 대해
간편하게 구성하여 사용하는데 목적이 있습니다.
다만 간편한 사용에 반해
확장에는 제한이 있을 수 있습니다.
실제 적용 예시는
공통컴포넌트 All-in-one 템플릿에서
다음 시큐리티 간소화 설정 파일을 참고하시면 됩니다.
/src/main/resources/egovframework/spring/com/context-security.xml
pom.xml에 다음의 의존성도 추가해 주셔야 합니다.
<dependency> <groupId>org.egovframe.rte</groupId> <artifactId>org.egovframe.rte.fdl.security</artifactId> <version>${org.egovframe.rte.version}</version> </dependency> |
감사합니다.