attachment修复
This commit is contained in:
@@ -21,9 +21,8 @@ public class ConfigController {
|
||||
AttachmentService attachmentService;
|
||||
@RequestMapping("/updateConfig")
|
||||
public String updateConfig(Config config){
|
||||
Date date=new Date();
|
||||
try {
|
||||
config.setUpdatetime(date.getTime());
|
||||
|
||||
if (config.getName().equals("")||config.getValue().equals("")){
|
||||
return "配置文件不能为空!";
|
||||
}
|
||||
@@ -44,8 +43,7 @@ public class ConfigController {
|
||||
if (config.getName().equals("")||config.getValue().equals("")){
|
||||
return "属性值不能为空";
|
||||
}else {
|
||||
Date date=new Date();
|
||||
config.setUpdatetime(date.getTime());
|
||||
|
||||
return configService.addConfig(config);
|
||||
}
|
||||
}catch (NullPointerException e){
|
||||
|
Reference in New Issue
Block a user