简体   繁体   English

jhipster Oracle数据库连接

[英]jhipster Oracle database connectivity

I can't seem to get the Liquibase running against oracle. 我似乎无法让Liquibase对抗oracle。

My application-dev.yml has: 我的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

But I recieved: 但我收到了:

[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

Which is odd as the class seems to have a url property: 这是奇怪的,因为该类似乎有一个url属性:

[btuser@localhost pool]$ strings OracleDataSource.class | grep -i seturl
setURL

Any thoughts? 有什么想法吗?

Thanks 谢谢

fixed this now, this config now works: 现在解决这个问题,这个配置现在有效:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM