Skip to content

Commit

Permalink
#Bug fix
Browse files Browse the repository at this point in the history
1. use spring static resource mapping.
  • Loading branch information
rainbowBPF2 committed May 7, 2018
1 parent 2f0da9d commit a77c940
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/main/webapp/WEB-INF/jsp/homePage.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<head>
<title>Horizon WorkSpace Page</title>
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="../../lib/bootstrap-3.3.7-dist/css/bootstrap-table.css">
<link rel="stylesheet" href="lib/bootstrap-3.3.7-dist/css/bootstrap-table.css">
<style>
.side-nav {
position: fixed;
Expand Down Expand Up @@ -60,7 +60,7 @@
<div class="collapse navbar-collapse green" id="navbarsExampleDefault">
<ul class="navbar-nav nav">
<li class="nav-item active">
<a class="nav-link" href="/toIndexPage">Home <span class="sr-only">(current)</span></a>
<a class="nav-link" href="toIndexPage">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Settings</a>
Expand Down Expand Up @@ -178,15 +178,15 @@
<!-- Bootstrap core JavaScript================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

<script>window.jQuery || document.write('<script src="../../lib/jQuery/jquery-3.2.1.min.js"><\/script>')</script>
<script>window.jQuery || document.write('<script src="lib/jQuery/jquery-3.2.1.min.js"><\/script>')</script>
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="../../lib/bootstrap-3.3.7-dist/js/bootstrap-table.js"></script>
<script src="../../lib/bootstrap-3.3.7-dist/js/bootstrap-table-zh-CN.js"></script>
<script src="lib/bootstrap-3.3.7-dist/js/bootstrap-table.js"></script>
<script src="lib/bootstrap-3.3.7-dist/js/bootstrap-table-zh-CN.js"></script>
<script>
$("#mainTable").bootstrapTable({
url: '/home/listUser', //请求后台的URL(*)
url: 'home/listUser', //请求后台的URL(*)
method: 'get', //请求方式(*)
toolbar: '#toolbar', //工具按钮用哪个容器
striped: true, //是否显示行间隔色
Expand Down
14 changes: 7 additions & 7 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./lib/jQuery/jquery-3.2.1.min.js"></script>
<script src="lib/jQuery/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="./lib/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<script src="./lib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="lib/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script>
$(function () {
Expand Down Expand Up @@ -95,16 +95,16 @@
</p>

<ul class="nav navbar-nav navbar-right">
<li><a href="/homePage">Home Page</a></li>
<li><a href="homePage">Home Page</a></li>

<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
我的旅行<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/worldBig/edit">世界很大</a></li>
<li><a href="/wallet/edit">钱包很小</a></li>
<li><a href="/wallet/edit">曾经足迹</a></li>
<li><a href="worldBig/edit">世界很大</a></li>
<li><a href="wallet/edit">钱包很小</a></li>
<li><a href="wallet/edit">曾经足迹</a></li>
</ul>

</li>
Expand Down Expand Up @@ -145,7 +145,7 @@
<!-- 模态框(Modal) -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"
style="margin-top: 120px">
<form class="bs-example bs-example-form" role="form" action="/loginHere" method="post">
<form class="bs-example bs-example-form" role="form" action="loginHere" method="post">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down

0 comments on commit a77c940

Please sign in to comment.