Field xxxService in xxx.controller.xxx required a bean of type ‘xxx.service.xxx’ 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 ‘cn.xxx.mybatisboot1.service.StudentService’ in your configuration.
可能是忘记在Service实现类上加@Service