1. 程式人生 > >SpringBoot連線PostgreSQL

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>