pring boot 启动的时候required a bean of type ‘XXX’ in your configuration.

  • Post author:
  • Post category:其他


如果是 @Service

1,看清楚引用的是哪个Service

是org.springframework.stereotype.Service;不是dubbo的service

2,看是否在指定路径下

3,@ServletComponentScan(basePackages = {“XXX.XXX.XXX”, “XXX.XXX.XXX”})



版权声明:本文为cx136295988原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。