pull/1/MERGE
tanghc 5 years ago
parent 8991694971
commit 150fae4ae0
  1. 2
      sop-admin/sop-admin-server/src/main/java/com/gitee/sop/adminserver/config/SopAdminEnvironmentPostProcessor.java
  2. 0
      sop-admin/sop-admin-server/src/main/resources/META-INF/sop-admin.properties

@ -21,7 +21,7 @@ public class SopAdminEnvironmentPostProcessor implements EnvironmentPostProcesso
@Override
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环境中
environment.getPropertySources().addLast(loadProfiles(resource));
}

Loading…
Cancel
Save