Class RestDemoController


  • @RestController
    @RolesAllowed("ROLE_GUEST")
    public class RestDemoController
    extends Object
    curl -v -H 'X-Client-Token: 123' 'http://localhost:8080/'
    • Constructor Detail

      • RestDemoController

        public RestDemoController()
    • Method Detail

      • helloUser

        @RequestMapping(method=GET,
                        path="/",
                        produces="application/json")
        public Map<String,​String> helloUser​(Principal principal,
                                                  org.springframework.security.core.Authentication authentication,
                                                  javax.servlet.http.HttpServletResponse response)
                                           throws IOException
        Throws:
        IOException