required a bean of type (需要一个bean类型)
Description:
Field studentMapper in com.yaorange.ssm.service.impl.StudentServiceImpl required a bean of type 'com.yaorange.ssm.mapper.StudentMapper' 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.yaorange.ssm.mapper.StudentMapper' in your configuration.
Process finished with exit code 1
发生这个原因是没有在配置类上进行mapper包下的接口扫描,加了之后就解决了