Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented

前端 未结 8 2164
迷失自我
迷失自我 2020-12-12 23:25

How can I solve this error:

java.lang.reflect.InvocationTargetException: null
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_1         


        
8条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 23:44

    I had the similar issue. I followed this solution and it worked for me

    http://vkuzel.blogspot.com/2016/03/spring-boot-jpa-hibernate-atomikos.html

    # Disable feature detection by this undocumented parameter. Check the org.hibernate.engine.jdbc.internal.JdbcServiceImpl.configure method for more details.
    spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false
    
    # Because detection is disabled you have to set correct dialect by hand.
    spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect
    

提交回复
热议问题