Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2017 13:44
What would you like to do?
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
* Handles requests for the application home page.
public class LoginController {
private static final Logger logger = LoggerFactory.getLogger(LoginController.class);
* Simply selects the home view to render by returning its name.
@RequestMapping(value = "/login")
public String home(Locale locale, Model model) {
return "login";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment