启动任务时(从 shell 或仪表板)如何设置 spring.active.profiles?
我总是有“没有事件配置文件集,回退到默认配置文件:默认”。这是因为我不知道如何设置 VM 参数,例如 -Dspring.active.profiles=xxx 我使用本地服务器实现。我用的是1.3.0 SPCF版本
谢谢
最佳答案
如果您想使用 Spring Cloud Flow Dashboard 激活 Spring 配置文件,只需在玩游戏时在 Arguments 部分添加 --spring.profiles.active=dev
任务。
干杯! 库纳尔
关于spring-cloud-dataflow - Spring 配置文件与 Spring Cloud Data Flow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48745804/