【发布时间】:2019-12-28 14:02:07
【问题描述】:
我计划运行我们自己的 Spring Initializr 实例。 Is there a way to have a set of application properties get written (to application.yml) when a certain option is chosen, ideally in a separate section for each of a set of predefined profiles?我研究了在 Initializr 中自定义项目生成过程并创建自定义启动器。我遇到过auto-configuration for starters,但这似乎是关于在属性未提供此配置时的默认配置,而我在生成属性之后。我还遇到了自定义 Spring Initializr 实例生成文件的example,但我需要它来修改 application.yml,而不破坏可能对其进行的任何其他修改。 p>
【问题讨论】:
标签: spring-boot spring-boot-starter spring-initializr