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