@ RequestMapping ( method = GET , value = "/foo" ) public Map < String , String > getFoo ( ) { final Map < String , String > fooObj = new HashMap <> ( ) ; fooObj . put ( "foo" , "bar" ) ; return fooObj ; }
Controller to just support pinging .