启动springboot项目遇到一个问题:
错误:Description:
Field iItemService in com.muses.taoshop.web.controller.portal.IndexController required a bean of type 'com.muses.taoshop.item.service.IItemService' that could not be found.
Action:
Consider defining a bean of type 'com.muses.taoshop.item.service.IItemService' in your configuration.
原因描述:
项目已被分解为不同的模块,需要指定独立模块要扫描的类或包
解决方法:
在对应的启动springboot类标签上加上