|
@@ -62,7 +62,7 @@ public class XuchangWaterConfig {
|
|
|
try {
|
|
|
YamlPropertiesFactoryBean yaml = new YamlPropertiesFactoryBean();
|
|
|
//此处是为了找到对应yaml文件的位置
|
|
|
- yaml.setResources(new ClassPathResource("application.yml"));
|
|
|
+ yaml.setResources(new ClassPathResource( "application.yml"));
|
|
|
Properties properties = yaml.getObject();
|
|
|
if(StringUtils.isEmpty(user)) {
|
|
|
user = properties.getProperty("xuchang.user");
|