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:
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
Jump to solution
5 Replies
Percy
Percy10mo ago
Project ID: 257850bf-ad29-47c8-b636-db8d7a71288d
Matheus Almeida
Matheus AlmeidaOP10mo ago
257850bf-ad29-47c8-b636-db8d7a71288d
Brody
Brody10mo ago
have you setup all the needed and correct service variables?
Solution
Matheus Almeida
Matheus Almeida10mo ago
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
Brody
Brody10mo ago
great, happy you solved it and thanks for the answer for future readers!
Want results from more Discord servers?
Add your server