master
wangbing 5 years ago
parent 0b9f6acfaa
commit c9d0cb68bc

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.