Skip to content

代码不走handleEmptyBody方法, #18

@895341748

Description

@895341748

image

我的请求体为空,并且我加上了解密注解。
@decrypt
@PostMapping("/aa")
public ReturnMsgUtils aa(@RequestBody JSONObject json) {
log.info("解密参数:{}", json);
String name=json.getString("name");
Assert.notBlank(name, "名称不能为空");

	UserListVO uv = JSON.parseObject(json.toJSONString(), UserListVO.class);
	ReturnMsgUtils msg=userService.userList2(uv);
	return msg;
}

代码只进入了afterBodyRead 方法,没有进handleEmptyBody,百思不得其解

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions