问题:
Field userInfoInter in com.yyjc.springboot.service.UserInfoService required a bean of type ‘com.yyjc.springboot.Mapper.UserInfoInter’ that could not be found.
解决:
我的项目结构
在主程序中加入基于包扫描的注解@MapperScan({""})或者@ComponentScan({""})
@SpringBootApplication
@MapperScan("com.yyjc.springboot.mapper")
public class Springboot009Application {
public static void main(String[] args) {
SpringApplication.run(Springboot009Application.class, args);
}
}
```