MVN Install encountered exception information:
2018-07-09 16:47:52.127 ERROR 9784---[druid-connectionpool-create-611026433] Com.alibaba.druid.pool.DruidDataSource:create connection SQLException, Url:jdbc:postgresql://Localhost:5432/lark, ErrorCode 0, State 0a000java.sql.SQLFeatureNotSupportedException: This org.postgresql.jdbc4.Jdbc4Statement.setQueryTimeout (int) method has not yet been implemented. At org.postgresql.Driver.notImplemented (Driver.java:753) ~[postgresql-9.1-901-1. Jdbc4.jar:na] at Org.postgresql.jdbc2.AbstractJdbc2Statement.setQueryTimeout (Abstractjdbc2statement.java: 668) ~[postgresql-9.1-901-1. Jdbc4.jar:na] at Com.alibaba.druid.pool.vendor.PGValidConnectionChecker.isValidConnection ( Pgvalidconnectionchecker.java:) ~[druid-1.1.10.jar:1.1.10] at Com.alibaba.druid.pool.DruidAbstractDataSource.validateConnection (Druidabstractdatasource.java:1346) ~[druid-1.1.10.jar:1.1.10] at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection (Druidabstractdatasource.java: 1633) ~[druid-1.1.10.jar:1.1.10] at Com.alibaba.druid.pool.druiddatasource$createconnectionthread.run (Druiddatasource.java:2468) ~[druid-1.1.10.jar:1.1.10]
Workaround: Modify the dependent version of postgresql9.3 in the Pom file
<!--https://mvnrepository.com/artifact/org.postgresql/postgresql- <dependency > <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.3-1102-jdbc41</version> </dependency>
I'm using the 9.3 version of PostgreSQL locally,
Download the corresponding dependency: Https://mvnrepository.com/artifact/org.postgresql/postgresql
Springboot+mybatis+postgresql problems encountered