其他分享
首页 > 其他分享> > Description: Cannot determine embedded database driver class for database type NONE 解决

Description: Cannot determine embedded database driver class for database type NONE 解决

作者:互联网

环境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);
    }
}

 

 

标签:NONE,basePackages,Description,database,springcloud,报错,DataSourceAutoConfiguratio
来源: https://www.cnblogs.com/wf-zhang/p/12169140.html