我好像无法让Liquibase在Oracle数据库上运行。
我的application-dev.yml文件中有以下内容:
spring:
profiles: dev
datasource:
dataSourceClassName: oracle.jdbc.pool.OracleDataSource
url: jdbc:oracle:thin:@localhost:1521:orcl
username: rest_test
password: rest_test
jpa:
database-platform: org.hibernate.dialect.OracleDialect
database: ORACLE
openInView: false
show_sql: true
generate-ddl: false
hibernate:
ddl-auto: none
但我收到了:
[DEBUG] com.steve.config.DatabaseConfiguration - Configuring Datasource
[ERROR] com.zaxxer.hikari.util.PropertyBeanSetter - Property url is does not exist on target class class oracle.jdbc.pool.OracleDataSource
这很奇怪,因为该类似乎具有一个url属性:
[btuser@localhost pool]$ strings OracleDataSource.class | grep -i seturl
setURL
有什么想法吗?
谢谢。