其他分享
首页 > 其他分享> > DruidDataSource 不能加载jdbc驱动,报Failed to determine a suitable driver class

DruidDataSource 不能加载jdbc驱动,报Failed to determine a suitable driver class

作者:互联网

DruidDataSource  不能加载jdbc驱动,报Failed to determine a suitable driver class

Spring boot 集成 Druid 启动后报Failed to determine a suitable driver class ,不能找到jdbc驱动类.

后来发现,是 spring-boot-starter-parent版本的问题,测试过1.5.9.RELEASE,2.1.3.RELEASE,都不行,后来测试旺度最高的的几个版本,发现2.0.2.RELEASE可以.

    <parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.0.2.RELEASE</version>
	</parent>
<springboot.druid.version>1.1.10</springboot.druid.version>
<druid.version>1.1.10</druid.version>
<!-- 连接池 -->
<dependency>
	<groupId>com.alibaba</groupId>
	<artifactId>druid-spring-boot-starter</artifactId>
	<version>${springboot.druid.version}</version>
</dependency>
dependency>
    <groupId>com.alibaba</groupId>
	<artifactId>druid</artifactId>
	<version>${druid.version}</version>
</dependency>

 

标签:jdbc,boot,driver,druid,Failed,determine,spring,RELEASE
来源: https://blog.csdn.net/qq_31683775/article/details/88620244