使用MybatisPlus时报错:
Description:
Field setmealService in com.sky.service.impl.CategoryServiceImpl required a bean of type 'com.sky.service.SetmealService' 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.sky.service.SetmealService' in your configuration.
这个错误就是在你使用了自动装配后spring容器找不到bean的问题
出现错误的可能原因就是注解忘记了,尤其是MybatisPlus的初学者,一定不要忘记在实现类中添加@service注解