Field *****Service in com.ruoyi.web.slweb.controller.TAcceptController required a bean of type ‘com.wx.base.service.*****Service’ that could not be found.
使用开源的前后端分离版若依框架,代码放进去后启动报错,说是找不到这个service,因为启动项和业务代码不在同一个module模块,所以用了MapperScan.这个注解
原因:MapperScan只扫描了mapper下面的文件修正:因为我的service和mapper在同一层级,所以往上一层就可以扫描到了。
启动成功
Field *****Service in com.ruoyi.web.slweb.controller.TAcceptController required a bean of type ‘com.
于 2021-10-15 14:57:32 首次发布