master
wangbing 5 years ago
parent 0b9f6acfaa
commit c9d0cb68bc

@ -140,9 +140,7 @@ public class GlobalController implements ErrorController {
* @param request * @param request
*/ */
@RequestMapping({"/**/*.htm"}) @RequestMapping({"/**/*.htm"})
public String action(HttpServletRequest request, Model model) { public String action(Model model, HttpServletRequest request, HttpServletResponse response) {
HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse();
String servletPath = request.getServletPath();// /**/*.htm String servletPath = request.getServletPath();// /**/*.htm
String layout = "/layout/default"; String layout = "/layout/default";
String action = LocalData.getAction();// **/* String action = LocalData.getAction();// **/*

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta charset="UTF-8" http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>404-对不起!您访问的页面不存在</title> <title>403-对不起!您访问的页面未授权</title>
<style type="text/css"> <style type="text/css">
* { * {

Loading…
Cancel
Save

Powered by TurnKey Linux.