Browse Source

获取配置失败时使用空字符作为默认值

周浩 9 years ago
parent
commit
8458505e3d

+ 1 - 1
hsweb-web-controller/src/main/java/org/hsweb/web/controller/config/ConfigController.java

@@ -124,7 +124,7 @@ public class ConfigController extends GenericController<Config, String> {
     @RequestMapping(value = {"/info/{name:.+}/{key:.+}"}, method = RequestMethod.GET)
     @AccessLogger("根据配置名和键获取配置")
     public Object configInfo(@PathVariable("name") String name, @PathVariable("key") String key) throws Exception {
-        return configService.get(name, key);
+        return configService.get(name, key,"");
     }
 
     @Override