SpringBoot连接PostgreSQL

近期用SpringBoot连接PostgreSql,
这个 org.postgresql.jdbc.PgConnection.createClob() 方法尚未被实作


application.properties
spring.datasource.platform=postgres  
spring.datasource.url=jdbc:postgresql://10.18.35.155:5432/test1?useSSL=false  
spring.datasource.username=abc  
spring.datasource.password=abc  
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults = false  
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQL9Dialect

pom.xml
<dependency>  
    <groupId>org.postgresql</groupId>  
    <artifactId>postgresql</artifactId>  
</dependency>

猜你喜欢

转载自blog.csdn.net/lbp0408/article/details/80237401