IT/Spring

[SpringBoot]MySQL 연동시 에러 Public key retrieval is not allowed 해결방법

binary? 2024. 5. 7. 08:22

 

[SpringBoot]MySQL 연동시 에러 Public key retrieval is not allowed 해결방법

 

아래와 같은 오류가 발생했다.

Exception in thread "main" 
java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
 

 

appilcation.yml 파일에 mysql-url 부분에 추가해주니 해결되었다.

 

allowPublicKeyRetrieval=true&useSSL=false