Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created March 20, 2017 13:44
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 ksakae1216/5da40d8faf41d2bed978a8c22505c09e to your computer and use it in GitHub Desktop.
Save ksakae1216/5da40d8faf41d2bed978a8c22505c09e to your computer and use it in GitHub Desktop.
package jp.org.web;
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.
*/
@Controller
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