How to exceute spring boot api with maven profile?

gsuarez1983
Tue, 19 Dec 2023 19:27:29 +0000
How To

Hi community! I have a doubt about how can I run a spring boot api manually. I need to do this: java -jar -Dspring.profiles.active=dev xxx.jar

I tried override the run command with command above, the application initialize, but never is healthy. Other option that I tried is the Procfile in the root of project, but I have the same error.

Somebody could help me?

Thanks!

Cheers!

3 posts - 2 participants