When I deployed MySQL on Docker, it took about 30 seconds to establish a connection from Spring Data JPA to MySQL, so I will leave a memo. In conclusion, I set the IP of the connection destination to 0.0.0.0:3306, and it seemed that it took a long time to resolve the connection destination. .. ..
--Slow spring.datasource.url=jdbc:log4jdbc:mysql://0.0.0.0:3306/mydb
Settings that I copied from the net without thinking about anything. It takes time to troubleshoot and I regret it.
Recommended Posts