环境eclipse 4.7 jdk1.8 搭建springcloud子父项目报错
出现了这两种报错
解决 加上下面两个注解
@ComponentScan(basePackages = {"com.wf.zhang.springcloud.dao"}) @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"com.wf.zhang.springcloud.dao"}) @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) @SpringBootApplication public class DeptProvider8001_App { public static void main(String[] args) { SpringApplication.run(DeptProvider8001_App.class, args); } }
原文地址:https://www.cnblogs.com/wf-zhang/p/12169140.html
时间: 2024-10-31 14:27:44