BASHA TECH

[IntelliJ]Could not autowired, No beans of ~ Error 본문

Error

[IntelliJ]Could not autowired, No beans of ~ Error

Basha 2023. 5. 8. 14:24
728x90

방법 1. Help -> Edit Custom Properties 

idea.spring.boot.filter.autoconfig=false

방법 2. 패키니 내에 Configuration을 추가해서 인식시키기

@Configuration

@ComponentScan({"@Autowired 대상이 있는 패키지"})

 

https://stackoverflow.com/questions/26889970/intellij-incorrectly-saying-no-beans-of-type-found-for-autowired-repository

728x90
반응형
Comments