This commit is contained in:
tanghc
2020-01-17 14:56:22 +08:00
parent 8991694971
commit 150fae4ae0
2 changed files with 1 additions and 1 deletions

View File

@@ -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));
}