gpt4 book ai didi

oracle - jhipster Oracle 数据库连接

转载 作者:行者123 更新时间:2023-12-02 01:11:36 24 4
gpt4 key购买 nike

我似乎无法让 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

有什么想法吗?

谢谢

最佳答案

现在修复了这个问题,这个配置现在可以工作了:

spring:
profiles: dev
datasource:
driverClassName: oracle.jdbc.OracleDriver
dataSourceClassName: oracle.jdbc.pool.OracleDataSource
url: jdbc:oracle:thin:@localhost:1521:orcl
username: rest_test
password: rest_test

jpa:
database-platform: org.hibernate.dialect.Oracle10gDialect
database: ORACLE
openInView: false
show_sql: true
generate-ddl: false
hibernate:
ddl-auto: none
naming-strategy: org.hibernate.cfg.EJB3NamingStrategy
properties:
hibernate.cache.use_second_level_cache: true
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: false
hibernate.cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory

关于oracle - jhipster Oracle 数据库连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23408248/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com