function modifySer(key){
$.ajax({
async: false,
url: "http://localhost:8080/beyond3dmapplatform/zswopr/monitor/modifySetting?"+key+"="+$("#"+key).val(),
dataType: "json",
success: function (data) {
if(data.success){
alert("更新成功!");
}else{
alert("更新失败!");
}
}
});
}
@At("/modifySetting")
@Ok("json:full")
@RequiresAuthentication
public Object modifySetting(@Param("..") Sys_status Sysstatus) throws Exception {
Map<String,String> result = new HashMap<String,String>();
// String message = "保存成功";
// String code ="1";
// result.put("success", message);
// result.put("code", code);
// try {
// sysAlarmService.insert(monitor);
// } catch (Exception e) {
// e.printStackTrace();
// message = "保存失败";
// code = "-1";
// result.put("success", message);
// result.put("code", code);
//
// }
return result;
}
[DEBUG] 2017-08-28 18:19:55,425 org.nutz.ioc.impl.ScopeContext.remove(ScopeContext.java:84) - Remove object 'zswoprMoinitorController' from [app]
[DEBUG] 2017-08-28 18:19:55,425 cn.wizzer.app.web.commons.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) - [GET ]URI=/beyond3dmap/platform/zswopr/monitor 44ms
[WARN ] 2017-08-28 18:19:55,425 org.nutz.mvc.impl.processor.FailProcessor.process(FailProcessor.java:28) - Error@/platform/zswopr/monitor :
org.nutz.ioc.IocException: IocBean[zswoprMoinitorController] throw Exception when creating
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:116)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)