Spring Boot app always fail
Hey guys! I'm trying to deploy my project but the connection with the MySQL database always fail.
The error:
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The deploy is okay, the problem is with the data connection. I've added the variables but withou success.
The same project was deployed months ago without issues. Anyone can help? It's of extreme urgency.
Solution:Jump to solution
I've figure it out. Was something with spring boot profiles. They are not automatically recognizing application-prod.properties as before. You should set a spring.profiles.active variable to work. I hope this can help someone too
5 Replies
Project ID:
257850bf-ad29-47c8-b636-db8d7a71288d
257850bf-ad29-47c8-b636-db8d7a71288d
have you setup all the needed and correct service variables?
Solution
I've figure it out. Was something with spring boot profiles. They are not automatically recognizing application-prod.properties as before. You should set a spring.profiles.active variable to work. I hope this can help someone too
great, happy you solved it and thanks for the answer for future readers!