org.postgresql.jdbc.PgConnection.createClob()はまだ実装されていません解決する方法

caliari77:

例外

春・ブートアプリケーションを起動するときに私が受け取りました。

java.sql.SQLFeatureNotSupportedException:によって引き起こさ方法org.postgresql.jdbc.PgConnection.createClob()はまだ実装されていません。

私は、これは私が今使っているPostgreSQLのドライバ、からいくつかの問題に関連している知っています。

Unsucessful試み

多くの人々はちょうどapplication.propertiesファイルで、この次の行を入れて問題を解決しました:

spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults =真

私はまだ同じ問題を持っています。このため、他のチップはありますか?ケースの思考は約現在の構成で私のプロジェクトを参照してください。 https://github.com/caliari77/hiRank

caliari77:

いくつかのテストの後、私はこれを解決することができます。私がgradle.buildファイルにそれを追加しましたので、これを解決するために、Hibernateの実装が欠落していたようです。私はJPAを取得するときに春ブーツはすでにそれの世話をしたと思ったが、私は間違っていました。ここではそれはgradle.buildから私の更新の依存関係は次のとおりです。

dependencies {

//Spring
//implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
//runtimeOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

//Hibernate
implementation 'org.hibernate:hibernate-core:5.4.2.Final'
implementation 'org.hibernate:hibernate-entitymanager:5.4.2.Final'

//Postgres
implementation 'org.postgresql:postgresql:42.2.5.jre7'

//Gson
implementation 'com.google.code.gson:gson:2.8.5'

//Logger
implementation 'log4j:log4j:1.2.17'

}

おすすめ

転載: http://43.154.161.224:23101/article/api/json?id=119135&siteId=1