When springMVC+shiro, uses a filter to deal with xss, the information of request is lost, so what should I do if I can't get into controller,?

clipboard.png

clipboard.png

clipboard.png

controller

 @RequiresPermissions("system:role:c")
    @RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    @ResponseBody
    public ResponseEntity<?> create(@RequestBody RoleRequest roleRequest) {
        Role role = roleRequest.toModel();
 
        return new ResponseEntity(role, HttpStatus.CREATED);
    }
Mar.25,2021

transition problems when converting parameters in the wrapper class

Menu