java.lang.Object
info.ejava.examples.svc.docker.hello.controllers.HelloController
@RestController
public class HelloController
extends Object
-
Constructor Summary
Constructors
-
Method Summary
hello(String name,
org.springframework.security.core.userdetails.UserDetails user)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HelloController
public HelloController()
-
Method Details
-
hello
@GetMapping(path="/api/hello",
produces="text/plain")
public String hello(@RequestParam("name")
String name,
@AuthenticationPrincipal
org.springframework.security.core.userdetails.UserDetails user)