Commit 9f15a6fc authored by 赵然's avatar 赵然

zr

parent 1fc1d58e
......@@ -18,6 +18,7 @@ import java.util.Map;
public class HbaseModule {
@Autowired
ViewService viewService;
/**
* 功能:Hbase查改操作
* @return
......@@ -58,4 +59,15 @@ public class HbaseModule {
return map;
}
/**
* 功能:访问量统计
* @return
*/
@RequestMapping(value = "/ViewCount", method= RequestMethod.GET)
@ResponseBody
public void ViewCount() throws Exception {
viewService.count();
}
}
......@@ -60,7 +60,26 @@
<script type="text/javascript" src="js/themer.js"></script>
<script type="text/javascript" src="js/demo.dashboard.js"></script>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<script>
var xmlhttp;
//实例化HTTP连接对象
......
......@@ -100,7 +100,26 @@ $(document).ready(function(){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -145,7 +145,26 @@ $(document).ready(function(){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -124,7 +124,26 @@ function check2(obj){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -99,7 +99,26 @@ $(document).ready(function(){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -182,7 +182,26 @@ $(document).ready(function(){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -62,6 +62,27 @@
<script type="text/javascript" src="js/themer.js"></script>
<script type="text/javascript" src="js/demo.charts.js"></script>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<script>
$(document).ready(function(){
......
......@@ -65,7 +65,26 @@
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -64,7 +64,26 @@
<title>MWS Admin - Dashboard</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<!-- Themer -->
......
......@@ -117,7 +117,26 @@ $(document).ready(function(){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -64,8 +64,29 @@
<title>MWS Admin - Dashboard</title>
</head>
<script>
window.onload = function count() {
<body>
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<!-- Themer -->
<div id="mws-themer">
......
......@@ -81,7 +81,26 @@
<title>MWS Admin - Dashboard</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<!-- Themer -->
......
......@@ -64,7 +64,26 @@
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
......@@ -103,7 +103,26 @@ $(document).ready(function(){
<title>MWS Admin - Charts</title>
</head>
<script>
window.onload = function count() {
$.ajax({
async: false,
cache: false,
header:"Content-type: text/html; charset=utf8",
type: 'GET',
url: 'ViewCount',
data:{},
dataType: "json",
error: function () {
alert("统计出错!");
},
success: function () {
}
})
};
</script>
<body>
<div id="mws-themer">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment