[Errors] Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration] from ClassLoader

2022. 3. 21. 11:16Errors

반응형

https://exerror.com/failed-to-introspect-class-org-springframework-security-config-annotation-web-configuration-websecurityconfiguration/

 

[Solved] Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]

To Solve Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration] Error You just

exerror.com

 

OS: 윈도우

IDE: 인텔리제이 (커뮤니티)

 

스프링부트가 정상적으로 작동을 하고 난뒤 , 바로 IDE가 종료 되었다.

그래서 @SpringBootApplicatiion이 있는 메인 클래스에서 @EnableWebMvc를 붙이고 난 뒤 다시 실행 해보니

Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration] from ClassLoader

 

위와 같은 에러가 생겼다.

그래서 검색을 하니 나와 동일한 에러가 생긴 사람이 있었고,

pom.xml에서 

주석 처리를 하고 나서 실행을 하니 정상적으로 작동을 할 수 있었다.

반응형