大佬教程收集整理的这篇文章主要介绍了无法将''下的属性绑定到com.zaxxer.hikari.HikariDataSource Spring Boot,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
正如Stephane Nicoll所说,您的类路径中没有驱动程序。您需要在gradle构建中包括jdbc驱动程序,如下所示。但是,您不必坚持我提供的驱动程序版本。
dependencIEs {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1"
TESTCompile "org.springframework.boot:spring-boot-starter-test"
runtime('com.Oracle:ojdbc7:12.1.0.2.0')
}
当我尝试运行Spring Boot应用程序时出现以下错误。
Description:
Failed to bind properties under '' to com.zaxxer.hikari.HikariDatasource:
Property: driverclassname
Value: Oracle.jdbc.OracleDriver
Origin: "driverClassName" from property source "source"
Reason: Unable to set value for property driver-class-name
Action:
update your application's configuration
我正在使用spring Boot 2.0.0
以下启动器。
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1"
TESTCompile "org.springframework.boot:spring-boot-starter-test"
}
这是我的application.properties
档案
spring.datasource.url= *****
spring.datasource.username= ******
spring.datasource.password= ******
以上是大佬教程为你收集整理的无法将''下的属性绑定到com.zaxxer.hikari.HikariDataSource Spring Boot全部内容,希望文章能够帮你解决无法将''下的属性绑定到com.zaxxer.hikari.HikariDataSource Spring Boot所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。