HttpEntity

HttpEntity is more or less identical to using @RequestBody but is based on a container object that exposes request headers and body. The following listing shows an example:

@PostMapping("/accounts")
public void handle(HttpEntity<Account> entity) {
	// ...
}