如何在春季继承应用程序.属性?
2022-09-02 01:50:02
如果我创建一个具有定义通用配置的共享资源库。喜欢:application.properties
spring.main.banner-mode=off
如何将这些属性继承到另一个包含这些共享资源库的项目中?
专家:
<project ...>
<groupId>de.mydomain</groupId>
<artifactId>my-core</artifactId>
<version>1.0.0</version>
<dependencies>
<dependency>
<!-- this one holds the common application.properties -->
<groupId>my.domain</groupId>
<artifactId>my-commons</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</project>
如何将配置从 继承到 ?my-commons
my-core