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注解与MapperScan注解


下一篇:SpringBoot DAO层映射文件(与mybatis的xml对应的接口文件)