diff --git a/src/main/java/haflow/ui/controller/HomeController.java b/src/main/java/haflow/ui/controller/HomeController.java index 9afa116..70db8d9 100644 --- a/src/main/java/haflow/ui/controller/HomeController.java +++ b/src/main/java/haflow/ui/controller/HomeController.java @@ -7,7 +7,12 @@ import org.springframework.web.servlet.ModelAndView; @Controller public class HomeController { - @RequestMapping({ "/", "/main" }) + @RequestMapping("/") + public ModelAndView logon() { + return new ModelAndView("logon"); + } + + @RequestMapping("/main") public ModelAndView main() { return new ModelAndView("main"); } diff --git a/src/main/webapp/WEB-INF/views/logon.jsp b/src/main/webapp/WEB-INF/views/logon.jsp new file mode 100644 index 0000000..3f6e756 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/logon.jsp @@ -0,0 +1,42 @@ +<%@ page language="java" contentType="text/html; charset=utf-8" + pageEncoding="utf-8"%> +<% + String path = request.getContextPath(); + String basePath = request.getScheme() + "://" + + request.getServerName() + ":" + request.getServerPort() + + path + "/"; +%> + + +
+ + +