Skip to content

Instantly share code, notes, and snippets.

@aarshtalati
Created May 14, 2018 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarshtalati/e054e26529651f655f2bb55babd9b836 to your computer and use it in GitHub Desktop.
Save aarshtalati/e054e26529651f655f2bb55babd9b836 to your computer and use it in GitHub Desktop.
SpringBoot MVC controller
package edu.gatech.epidemics.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
* @author atalati
*/
@Controller
public class PersonController {
@GetMapping(value = {"/", "/person/index"})
public String index(){
System.out.println("List all people");
return "person/index";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment