Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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