Field xxService in com.xxx.server.controller.xxController required a bean of type

***************************
APPLICATION FAILED TO START
***************************

Description:

Field xxxService in com.xxx.server.controller.xxxController required a bean of type 'com.xxx.server.service.xxxService' that could not be found.

The injection point has the following annotations:
	- @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.xxx.server.service.xxxService' in your configuration.

在这里插入图片描述
上述报错是因为在 service.impl服务实现层中缺少了 @Service

在这里插入图片描述


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