Spring boot启动类报错内容:
Description:
Field userMapper in com.tmeone.erpone.service.impl.UserDetailsServiceImpl required a bean of type ‘com.tmeone.erpone.mapper.SUserMapper’ 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.tmeone.erpone.mapper.SUserMapper’ in your configuration.
报错原因:Spring boot启动类上缺少@MapperScan注解