Given...
public class User {
private String name;
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
}
And...
@RestController
public class DemoController {
@GetMapping("/hello")
public Mono<String> hello(@ModelAttribute(binding = false) User user) {
return Mono.just(user.getName());
}
}
... when I call http://localhost:8080/hello?name=xxxx , I get "xxxx" for WebFlux but "" for Web MVC.
Given...
And...
... when I call http://localhost:8080/hello?name=xxxx , I get
"xxxx"for WebFlux but""for Web MVC.