簡體   English   中英

Spring Boot + Oracle:Hibernate方言是9i,在屬性中設置為10g

[英]Spring Boot + Oracle: Hibernate dialect is 9i when in properties it is set to 10g

我正在嘗試使用Oracle DB運行Spring Boot應用程序,並且我專門將spring.datasource.platform值設置為org.hibernate.dialect.Oracle10gDialect

在運行時我看到這條消息:

2017-03-30 14:15:34.474  INFO 6664 --- [  restartedMain] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.Oracle9iDialect

為什么它顯示9i而不是10g? 這是我做錯了什么,或者是我的驅動程序版本在pom中,還是由我正在使用的數據庫強制執行?

這是pom驅動程序:

<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc6</artifactId>
    <version>11.2.0.4</version>
</dependency>

你可以試試下面的屬性鍵嗎?

spring.jpa.database-platform

有關詳細信息, 請訪問https://docs.spring.io/spring-boot/docs/current/reference/html/howto-data-access.html#howto-configure-jpa-properties

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM