最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Consider defining a bean of type‘xxx‘in your configuration的解决方法

业界 admin 1浏览 0评论
***************************
APPLICATION FAILED TO START
***************************

Description:

Field goodsService in xxx.xxx.controller.GoodsController required a bean of type 'xxx.xxx.service.IGoodsService' 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 'xxx.xxx.service.IGoodsService' in your configuration.

在编写Controller类时出现上述的运行错误
如果你是使用mybatis或者mybatis-plus框架的项目
请检查impl类是否添加了@Service注解

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

Description:

Field goodsService in xxx.xxx.controller.GoodsController required a bean of type 'xxx.xxx.service.IGoodsService' 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 'xxx.xxx.service.IGoodsService' in your configuration.

在编写Controller类时出现上述的运行错误
如果你是使用mybatis或者mybatis-plus框架的项目
请检查impl类是否添加了@Service注解

与本文相关的文章

发布评论

评论列表 (0)

  1. 暂无评论