Discuss / Java / idea运行项目,启动参数不应该写在 Active profiles

idea运行项目,启动参数不应该写在 Active profiles

Topic source

参数应该写在 Environment variables 那里,不然真正运行的将会是default的代码

spring.profiles.active=test

劳埃德

#2 Created at ... [Delete] [Delete and Lock User]
-Dspring.profiles.active=test

可以写在jvm参数里


  • 1

Reply