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

Posted wf-zhang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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);
    }
}

 

 

以上是关于Description: Cannot determine embedded database driver class for database type NONE 解决的主要内容,如果未能解决你的问题,请参考以下文章

Description ResourcePathLocationType Cannot change version of project facet Dynamic Web Module to 2

Spring Boot 启动失败,描述/Description: Cannot determine embedded database driver class for database type

软件工程 - SSM网页制作报错解决 - Description Resource Path Location Type Cannot change version of project fac(

关于eclipse的Description:Resource Path Location Type The project cannot be built until build path error

Cannot find required service quagga in /etc/init.d/

trouble shooting(Cannot determine embedded database driver class for database type NONE)