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 + "/"; +%> + + + + + +Haflow Logon + + +
+
+

基于Hadoop的大数据分析平台

+
+
+
+ +
+
+

登录

+
+ 用户名: +
+
+ 密码: +
+
+ + +
+
+
+
+
+ + \ No newline at end of file diff --git a/src/main/webapp/images/logon.png b/src/main/webapp/images/logon.png new file mode 100644 index 0000000..dea041c Binary files /dev/null and b/src/main/webapp/images/logon.png differ diff --git a/src/main/webapp/style/index.css b/src/main/webapp/style/index.css index 905de52..cc42fa7 100644 --- a/src/main/webapp/style/index.css +++ b/src/main/webapp/style/index.css @@ -46,6 +46,23 @@ p { width: 700px; } +.left { + float: left; +} + +.right { + width: 40%; + float: right; +} + +.field { + margin: 5px; +} + +.clear { + clear: both; +} + h1 { color: #333; font-size: 36px;