With this code
@RequestMapping(value = \"/bar/foo\", method = RequestMethod.GET) public ResponseEntity foo() { Foo model; ...
The answer written by @Marc is also valid. But the concrete answer is the Getter method is required. You don't even need a Setter.
Getter
Setter