카테고리 없음
질문할거
이건탁
2020. 12. 25. 01:31
728x90
chapter02_SpringMaven 프로젝트의
sample03
![]() |
SungJukDTO클래스랑 SungJukImpl클래스에 @Component, @ComponentScan 둘다 주석 applicationContext.xml에서 SpringConfiguration연결 부분만 이유: 왜? |
오류안남 |
![]() |
@Component, applicationContext.xml에서 SpringConfiguration연결 부분 이유: Component가 자동으로 bean생성해줘서? 근데 xml에서 어노테이션을 쓰는걸 못찾을 텐데? |
오류안남 |
![]() |
@ComponentScan applicationContext.xml에서 SpringConfiguration연결 부분 이유: @ComponentScan 을 썼고 그곳에 빈을 생성해서 |
오류안남 |
![]() |
@Component, @ComponentScan 둘다 주석걸고 applicationContext.xml에서 sample03 연결 부분만 활성화 하면 이유: 빈이 없으니까 값을 찾을 수 없어서 |
오류 |
![]() |
@Component applicationContext.xml에서 sample03 부분만 활성화 이유: xml에서 어노테이션을 쓴다했고 Component이 알아서 빈을 생성해줘서 |
오류안남 |
![]() |
@ComponentScan applicationContext.xml에서 sample03 부분만 활성화 이유: xml에서 어노테이션을 쓴다고 알렸는데 ComponentScan 는 spring.conf에 빈을 생성하는데 거기가는 길을 안알려 줬으니깐 |
오류 |
@Component를 쓰면 안보이게 bean생성
@ComponentScan("클래스명") 을 쓰면 관리하기 쉽게 한 클래스에 빈 생성
메이븐 sample5번에서 componentScan을 안쓰는데 왜 <context.component-scan~>가 없으면 에러나는지?
@Component를 쓰니까 자동으로 bean을 만들고 있어서 에러가 안나야 하는데?
728x90