springboot启动服务报错Error creating bean with name 'xxx defined in class path

问题原因:

springboot启动类找不到对应的包和类

解决: 

在application启动类中添加注解@ComponentScan({"base.test.xxx"}) 

猜你喜欢

转载自blog.csdn.net/vandet100/article/details/86636993
今日推荐