其实一开始就晓得是找不到这个鬼东西,后来查了一下发现有时候还是要进行以下
扫描获取
@SpringBootConfiguration
@SpringBootApplication
@MapperScan(basePackages = “com.eshop”) //扫描的mapper
@ComponentScan(basePackages = “com.eshop.entity”)
@ComponentScan(basePackages = “com.eshop.controller”)
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}