|
|
@ -21,7 +21,7 @@ public class SopAdminEnvironmentPostProcessor implements EnvironmentPostProcesso |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) { |
|
|
|
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) { |
|
|
|
Resource resource = new ClassPathResource("sop-admin.properties"); |
|
|
|
Resource resource = new ClassPathResource("META-INF/sop-admin.properties"); |
|
|
|
// 加载成PropertySource对象,并添加到Environment环境中
|
|
|
|
// 加载成PropertySource对象,并添加到Environment环境中
|
|
|
|
environment.getPropertySources().addLast(loadProfiles(resource)); |
|
|
|
environment.getPropertySources().addLast(loadProfiles(resource)); |
|
|
|
} |
|
|
|
} |
|
|
|