From 938f9b603c81b80b12ab8ce3699af6de9438066d Mon Sep 17 00:00:00 2001
From: skinnyWu <yuxin.wu@yoho.cn>
Date: Thu, 21 Jul 2016 15:04:04 +0800
Subject: [PATCH] 嵌入Hystrix页面

---
 monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java | 26 ++++++++++++++++++++++++++
 monitor-ui-web/src/main/webapp/jsp/hystrix/aws.jsp         | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 monitor-ui-web/src/main/webapp/jsp/hystrix/qcloud.jsp      | 16 ++++++++++++++++
 3 files changed, 89 insertions(+), 0 deletions(-)
 create mode 100644 monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java
 create mode 100644 monitor-ui-web/src/main/webapp/jsp/hystrix/aws.jsp
 create mode 100644 monitor-ui-web/src/main/webapp/jsp/hystrix/qcloud.jsp

diff --git a/monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java b/monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java
new file mode 100644
index 0000000..4c8f0ee
--- /dev/null
+++ b/monitor-ui-ctrl/src/main/java/com/ui/ctrl/HystrixCtrl.java
@@ -0,0 +1,26 @@
+package com.ui.ctrl;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.servlet.ModelAndView;
+
+/**
+ * 查看hystrix数据页面
+ *
+ * Created by yoho on 2016/7/21.
+ */
+@Controller
+@RequestMapping("hystrix")
+public class HystrixCtrl {
+
+    @RequestMapping("/aws")
+    public ModelAndView toAWS() {
+        return new ModelAndView("hystrix/aws");
+    }
+
+    @RequestMapping("/qcloud")
+    public ModelAndView toQCloud() {
+        return new ModelAndView("hystrix/qcloud");
+    }
+
+}
diff --git a/monitor-ui-web/src/main/webapp/jsp/hystrix/aws.jsp b/monitor-ui-web/src/main/webapp/jsp/hystrix/aws.jsp
new file mode 100644
index 0000000..f4d7fa3
--- /dev/null
+++ b/monitor-ui-web/src/main/webapp/jsp/hystrix/aws.jsp
@@ -0,0 +1,47 @@
+<%@page language="java" contentType="text/html;charset=utf-8" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+
+<%
+  String path = request.getContextPath();
+  String basePath = request.getScheme() + "://"
+          + request.getServerName() + ":" + request.getServerPort()
+          + path + "/";
+%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
+  <title>项目发布</title>
+  <link rel="stylesheet" href="<%=basePath %>css/unicorn.main.css"/>
+  <link rel="stylesheet" href="<%=basePath %>css/unicorn.grey.css"/>
+  <link rel="stylesheet" href="<%=basePath %>css/bootstrap.min.css"/>
+  <link href="<%=basePath%>css/style.default.css" rel="stylesheet">
+  <link href="<%=basePath%>css/morris.css" rel="stylesheet">
+  <link href="<%=basePath%>css/select2.css" rel="stylesheet"/>
+
+</head>
+
+<body ><%--style="background-color: #444444;font-size: 14px"--%>
+
+<!-- 头部 -->
+<div id="head">
+</div>
+
+
+
+
+
+<script src="<%=basePath %>script/common/genarate_left_panel.js"></script>
+<script type="text/javascript">
+  $("#li_projectRelease").addClass("active");
+</script>
+<script language="JavaScript">
+  window.onbeforeunload = function () {
+    return "真的离开?";
+  }
+
+</script>
+</body>
+</html>
diff --git a/monitor-ui-web/src/main/webapp/jsp/hystrix/qcloud.jsp b/monitor-ui-web/src/main/webapp/jsp/hystrix/qcloud.jsp
new file mode 100644
index 0000000..40194c8
--- /dev/null
+++ b/monitor-ui-web/src/main/webapp/jsp/hystrix/qcloud.jsp
@@ -0,0 +1,16 @@
+<%--
+  Created by IntelliJ IDEA.
+  User: yoho
+  Date: 2016/7/21
+  Time: 14:49
+  To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head>
+    <title></title>
+</head>
+<body>
+
+</body>
+</html>
--
libgit2 0.24.0