![](/img/trans.png)
[英]Spring Boot 2: How to configure HikariCP using application.properties file
[英]Caching properties using Hikaricp in Oracle
我需要知道什么是連接緩存屬性,即使用Oracle 11g企業版和Express版,Hibernate和HikariCP。
我將這些屬性放在hibernate.cfg中,但出現異常:
<property name="hikari.dataSource.cachePrepStmts">true</property>
<property name="hikari.dataSource.prepStmtCacheSize">250</property>
<property name="hikari.dataSource.prepStmtCacheSqlLimit">2048</property>
<property name="hikari.dataSource.useServerPrepStmts">true</property>
這些屬性是MySQL屬性。 Oracle是不同的。 嘗試:
<property name="hikari.dataSource.implicitCachingEnabled">true</property>
<property name="hikari.dataSource.maxStatements">250</property>
有關詳情,請參見此頁面 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.