org.springframework.beans.factory.BeanCreationException 본문
org.springframework.beans.factory.BeanCreationException
[Spring] org.springframework.beans.factory.BeanCreationException 에러
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed ※ 에러이유 : 빈 생성시 예외가 발생함 userControll..
jobc.tistory.com
※ 에러이유 :
빈 생성시 예외가 발생함
userController에서 객체 주입을 받지 못함
※ 해결 :
Controller에서 사용하는 Service객체에 @Service 애노테이션을 명시해주지 않아서 발생함
객체로 등록되지 않은 빈을 컨트롤러에서 사용
Service객체에 @Service 애노테이션을 명시해줌으로써 해결
Comments