How does SpringMVC get the value of request playload from the front end?

get json string

Mar.16,2021

this is specific to how your interface is defined, whether it's POST body or query string.


@PostMapping("/test")
public void test(@RequestBody SomeRequest request){

}

use @ RequestBody

Menu