unauthorized.jsp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <%@ page contentType="text/html; charset=UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
  5. %>
  6. <!DOCTYPE html>
  7. <html lang="zh-CN">
  8. <head>
  9. <meta charset="utf-8" />
  10. <title>未授权操作</title>
  11. <style>
  12. body {
  13. background-color: #f1f3f6;
  14. color: #555;
  15. font: 400 1em/1.45 Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,STXihei,STHeiti,Microsoft YaHei,SimHei,sans-serif;
  16. }
  17. .x-container {
  18. width: 990px;
  19. margin: 30px auto
  20. }
  21. .x-well {
  22. border: 1px solid #e4e7ed;
  23. border-bottom-width: 0;
  24. border-radius: 4px;
  25. box-shadow: 0 1px 4px 0 rgba(204,209,217,.3);
  26. }
  27. .x-well .x-title{
  28. padding: 24px 30px 20px;
  29. border-bottom: 1px solid #e4e7ed;
  30. border-radius: 4px 4px 0 0;
  31. background-color: #f5f7fa;
  32. box-shadow: inset 0 1px 0 0 rgba(255,255,255,.6);
  33. }
  34. .x-well .x-block{
  35. font-size: 14px;
  36. padding: 25px 30px;
  37. border-bottom: 1px solid #e4e7ed;
  38. background-color: #fff;
  39. }
  40. ul {
  41. list-style: none;
  42. }
  43. ul li {
  44. padding: 10px 20px
  45. }
  46. .x-btn {
  47. display: inline-block;
  48. font-weight: 400;
  49. border: 1px solid transparent;
  50. outline: none;
  51. background-image: none;
  52. cursor: pointer;
  53. -webkit-user-select: none;
  54. user-select: none;
  55. text-align: center;
  56. text-decoration: none;
  57. vertical-align: middle;
  58. white-space: nowrap;
  59. box-sizing: border-box;
  60. padding: 8px 17px;
  61. font-size: 14px;
  62. line-height: 1;
  63. border-radius: 4px
  64. }
  65. .x-btn-default {
  66. color: #fff;
  67. border-color: #217ef2;
  68. background-color: #3890ff;
  69. background-image: -webkit-gradient(linear,left bottom,left top,from(hsla(0,0%,100%,.06)),to(hsla(0,0%,100%,.06))),-webkit-gradient(linear,left bottom,left top,from(rgba(9,109,236,.5)),to(rgba(76,155,255,.5)));
  70. background-image: -webkit-linear-gradient(bottom,hsla(0,0%,100%,.06),hsla(0,0%,100%,.06)),-webkit-linear-gradient(bottom,rgba(9,109,236,.5),rgba(76,155,255,.5));
  71. background-image: linear-gradient(0deg,hsla(0,0%,100%,.06) 0,hsla(0,0%,100%,.06)),linear-gradient(0deg,rgba(9,109,236,.5) 0,rgba(76,155,255,.5));
  72. box-shadow: inset 0 1px 0 hsla(0,0%,100%,.08), 0 1px 1px rgba(0,0,0,.08);
  73. text-shadow: 0 -1px 0 rgba(0,0,0,.1)
  74. }
  75. .x-btn-default:hover {
  76. background-image: -webkit-gradient(linear,left bottom,left top,from(rgba(9,109,236,.5)),to(rgba(76,155,255,.5)));
  77. background-image: -webkit-linear-gradient(bottom,rgba(9,109,236,.5),rgba(76,155,255,.5));
  78. background-image: linear-gradient(0deg,rgba(9,109,236,.5) 0,rgba(76,155,255,.5));
  79. }
  80. </style>
  81. </head>
  82. <body>
  83. <div class="x-container">
  84. <div class="x-well">
  85. <div class="x-title">未授权的操作</div>
  86. <div class="x-block">
  87. <p>${exceptionInfo}</p>
  88. </div>
  89. <div class="x-block">
  90. <p>您可以
  91. <ul>
  92. <li><a class="x-btn x-btn-default" href="javascript:window.location.reload();">刷新试试</a></li>
  93. <li><a class="x-btn x-btn-default" href="<%=basePath%>">重新登录</a></li>
  94. </ul>
  95. </p>
  96. </div>
  97. </div>
  98. </div>
  99. </body>
  100. </html>