mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
3.0.0
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user