honey_pot

[spring] context:component-scan" is not bound 본문

error 모음집

[spring] context:component-scan" is not bound

_tera_ 2021. 6. 2. 14:10

xmlns:context="http://www.springframework.org/schema/context"

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">

 

두 줄이 빠져있어서 오류 발생

bean configuration file을 만들때 선택을 잘못한듯

 

component-scan 요소

 

어노테이션이 선언된 클래스들을 classpath를 타고가 스캔 -> @annotation이 명시된 요소들을 스프링 빈으로 등록



Comments