executeUpdate
return the rows found or match instead of affected rows, if u wanna to get the suppose answer, u could use theUseAffectedRows
args to make it.<setting name="mapUnderscoreToCamelCase" value="false" />
Ensure this arg’s value should be false if u do not want use it. Something may got wrong on thec
tag rendering as a result of it.spring boot controller response
@Controller public class ResponseController{ @GetMapping("page") public String Page(){ //will react to index.html directly return "index"; } @GetMapping("/json1") public Entity json1Response(){ Entity entity = new Entity(); return entity; } @GetMapping("/json2") public Map<String, Entity> json2Response(){ Map<String, Entity> map = new HashMap<>(); map.put("entity1", new Entity()); return map; } @GetMapping("/json3") @ResponseBody() public Entity json3Response(){ Entity entity = new Entity(); return entity; } @GetMapping("/ouput") @ResponseBody() public String ouputResponse(){ String ouput = "output"; return output; } @GetMapping("/controllerRouter") public ModelAndView routerDirect(){ String url = "/controller/router"; return new ModelAndView("redirect:" + url); } }
https://github.com/Germey/AwesomeWebSpider/blob/master/WebSpider.pdf
Weekly Note
最新推荐文章于 2024-09-13 21:53:41 发布