[2019-01-08 19:50:32.858] ERROR [Druid-ConnectionPool-Create-31803305] --- DruidDataSource: create connection SQLException, url: jdbc:postgresql://192.168.1.196:5432/ami, errorCode 0, state 0A000
java.sql.SQLFeatureNotSupportedException: 这个 org.postgresql.jdbc4.Jdbc4Statement.setQueryTimeout(int) 方法尚未被实作。
at org.postgresql.Driver.notImplemented(Driver.java:753)
at org.postgresql.jdbc2.AbstractJdbc2Statement.setQueryTimeout(AbstractJdbc2Statement.java:668)
at com.alibaba.druid.pool.vendor.PGValidConnectionChecker.isValidConnection(PGValidConnectionChecker.java:64)
at com.alibaba.druid.pool.DruidAbstractDataSource.validateConnection(DruidAbstractDataSource.java:1358)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1646)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2505)
[2019-01-08 19:50:32.858] ERROR [Druid-ConnectionPool-Create-31803305] --- DruidDataSource: create connection SQLException, url: jdbc:postgresql://192.168.1.196:5432/ami, errorCode 0, state 0A000
java.sql.SQLFeatureNotSupportedException: 这个 org.postgresql.jdbc4.Jdbc4Statement.setQueryTimeout(int) 方法尚未被实作。
at org.postgresql.Driver.notImplemented(Driver.java:753)
at org.postgresql.jdbc2.AbstractJdbc2Statement.setQueryTimeout(AbstractJdbc2Statement.java:668)
at com.alibaba.druid.pool.vendor.PGValidConnectionChecker.isValidConnection(PGValidConnectionChecker.java:64)
at com.alibaba.druid.pool.DruidAbstractDataSource.validateConnection(DruidAbstractDataSource.java:1358)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1646)
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2505)
server.port=8080
server.host=0.0.0.0
#jdbc.url=jdbc:h2:mem:~
jdbc.url=jdbc:postgresql://192.168.1.196:5432/ami
jdbc.username=postgres
jdbc.password=postgres
nutz.dao.interceptor.time.enable=true
nutz.dao.interceptor.cache.enable=true