Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码不走handleEmptyBody方法, #18

Open
895341748 opened this issue Apr 23, 2023 · 0 comments
Open

代码不走handleEmptyBody方法, #18

895341748 opened this issue Apr 23, 2023 · 0 comments

Comments

@895341748
Copy link

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,百思不得其解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant