Authored by skinny.wu

嵌入Hystrix页面

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");
}
}
... ...
<%@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>
... ...
<%--
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>
... ...