- the current project is divided into multiple sub-modules using maven.
- each submodule has a corresponding configuration file, which is configured using ConfigurationProperties annotations.
my pom file in the main project looks like this
<dependency>
<groupId>com.shopping.framework</groupId>
<artifactId>spring-boot-starter-pay</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>
<!-- -->
<dependency>
<groupId>com.shopping.framework</groupId>
<artifactId>spring-boot-starter-sms</artifactId>
<version>1.0.0.RELEASE</version>
</dependency>
the problem now is:
the ConfigurationProperties configuration of the spring-boot-starter-pay module takes effect, and the other annotation is invalid. When starting, the breakpoint of the set method will not be entered. If I change the order, it will be the reverse, spring-boot-starter-sms will take effect, and the pay module will not take effect.
excuse me, does ConfigurationProperties only support one class file?