MapperScan中没有将地址写对,导致各种问题报错
作者:互联网
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu"})
@EnableFeignClients//服务调用
@EnableDiscoveryClient//nacos注册
@MapperScan("com.atguigu.eduorder.mapper")//防止找不到mapper路径
@CrossOrigin
public class OrderApplication {
public static void main(String[] args) {
SpringApplication.run(OrderApplication.class, args);
}
}
标签:mapper,OrderApplication,args,地址,class,MapperScan,报错,public 来源: https://blog.csdn.net/weixin_53041144/article/details/116393983