Class RestDemoController
- java.lang.Object
-
- org.oxerr.spring.security.guest.samples.helloworld.web.RestDemoController
-
@RestController @RolesAllowed("ROLE_GUEST") public class RestDemoController extends Object
curl -v -H 'X-Client-Token: 123' 'http://localhost:8080/'
-
-
Constructor Summary
Constructors Constructor Description RestDemoController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
helloUser(Principal principal, org.springframework.security.core.Authentication authentication, javax.servlet.http.HttpServletResponse response)
-
-
-
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
-
-