Day by Day

자바 Postgre 연동시 오류 The authentication type 10

차빛 2021. 6. 24. 17:08
반응형

멍청이 같지만... 

 

 

 

org.postgresql.util.PSQLException: The authentication type 10 is not supported. Check that you have configured the pg_hba.conf file to include the client's IP address or subnet, and that it is using an authentication scheme supported by the driver.

위와 같은 에러가 난다면, 

 

javax.servlet-api가 3.0이상에 PostgreSQL 버전이 맞지 않아서이니 아래와 같이 수정!

<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
		<dependency>
		    <groupId>javax.servlet</groupId>
		    <artifactId>javax.servlet-api</artifactId>
		    <version>3.1.0</version>
		    <scope>provided</scope>
		</dependency>
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
		<dependency>
		    <groupId>org.postgresql</groupId>
		    <artifactId>postgresql</artifactId>
		    <version>42.2.22</version>
		</dependency>
반응형