idea的springboot项目启动报错:
A component required a bean of type 'poi.Test' that could not be found.
这是idea没有识别到这个包、没有扫到
在启动类上添加
@ComponentScan
举例:
idea的springboot项目启动报错:
A component required a bean of type 'poi.Test' that could not be found.
这是idea没有识别到这个包、没有扫到
在启动类上添加
@ComponentScan
举例: