With this code
@RequestMapping(value = \"/bar/foo\", method = RequestMethod.GET) public ResponseEntity foo() { Foo model; ...
you didn't have any getter/setter methods.