Created
May 14, 2018 18:27
-
-
Save aarshtalati/e054e26529651f655f2bb55babd9b836 to your computer and use it in GitHub Desktop.
SpringBoot MVC controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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