【发布时间】:2018-10-17 08:41:21
【问题描述】:
当我尝试运行 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
这是same issue 我有,但我没有使用 maven。
我正在使用 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= ******
【问题讨论】:
-
您应该描述您的配置,因为这是导致您的应用失败的原因。
-
更新了我的问题。
标签: spring spring-boot jdbc