[docker]com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure 오류
window10 docker tool box를 사용하는데 다음과 같은 오류가 떴다 com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 원인은 docker machine의 ip가 localhost로 접속을 못하기 때문이다 ! 해결방법 1. docker 컨테이너를 로컬머신의 포트와 연결해주는 옵션이 -p 라는 옵션인데요. 그 옵셥으로 포트를 맵핑하면 localhost로 접근할 수 있습니다..
Spring/Spring 오류
2020. 1. 30. 15:47