1. Writing method (you can add parameters and other codes that need to be executed)
@RequestMapping(value = "complete")
@ResponseBody
public Object complete() {
Map<String, Object> map=Maps.newHashMap();
map.put("code",1);
map.put("msg","no");
return map;
}
2. Run to see the results (as shown)