Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
public class WelcomeController {
public String welcomePublic() {
return "welcome public/guest user";
public String welcomeAdmin() {
return "welcome admin";
public String welcomeUser() {
return "welcome user";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment