java setting active profile from commond line in springboot

java -jar -Dspring.profiles.active=dev-prod xxx.jar

from:
https://stackoverflow.com/questions/31038250/setting-active-profile-and-config-location-from-command-line-in-spring-boot

posted @ 2025-03-24 14:37  program_keep  阅读(6)  评论(0)    收藏  举报