Use the Spring MVC annotation to inject the configurations and reduce configuration management costs.

The  @Value can be used directly to inject the configurations:

class SampleRunner implements ApplicationRunner {
    String userId;

    String userName;
    int userAge;
    public void run(ApplicationArguments args){

Note If the same key is configured in of the Spring Boot application and  ${}:${}.properties of ACM at the same time, the value in ACM overrides the default value of the application.