统一各webapp默认首页

This commit is contained in:
shuzheng 2017-02-04 10:59:00 +08:00
parent 0c59c2c323
commit 5ac87a0066
24 changed files with 28 additions and 140 deletions

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- zhang-upms-client -->
<filter>
<filter-name>zheng-upms-client</filter-name>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -12,6 +12,6 @@
<title>首页</title>
</head>
<body>
index
</body>
</html>

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Druid连接池监控页面 -->
<servlet>
<servlet-name>DruidStatView</servlet-name>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -12,6 +12,6 @@
<title>首页</title>
</head>
<body>
index
</body>
</html>

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Druid连接池监控页面 -->
<servlet>
<servlet-name>DruidStatView</servlet-name>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -12,6 +12,6 @@
<title>首页</title>
</head>
<body>
index
</body>
</html>

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Druid连接池监控页面 -->
<servlet>
<servlet-name>DruidStatView</servlet-name>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -12,6 +12,6 @@
<title>首页</title>
</head>
<body>
index
</body>
</html>

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Druid连接池监控页面 -->
<servlet>
<servlet-name>DruidStatView</servlet-name>

View File

@ -1,24 +0,0 @@
package com.zheng.upms.admin.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* 首页controller
* Created by ZhangShuzheng on 2017/01/19.
*/
@Controller
public class IndexController {
/**
* 默认页跳转到后台
* @return
*/
@RequestMapping(value = {"", "/index"})
public String index() {
return "redirect:/manage";
}
}

View File

@ -20,9 +20,4 @@ public class ManageController {
return "/manage/index";
}
@RequestMapping("/login")
public String login() {
return "/manage/login";
}
}

View File

@ -20,10 +20,11 @@
<property name="unauthorizedUrl" value="/403"/>
<property name="filterChainDefinitions">
<value>
swagger-ui.html = anon
/webjars/** = anon
/resources/** = anon
/sso/login = anon
<!--/swagger-ui.html = anon-->
<!--/webjars/** = anon-->
<!--/resources/** = anon-->
<!--/sso/login = anon-->
/druid/**=authc
/manage/**=authc
</value>
</property>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -5,13 +5,4 @@
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>首页</title>
</head>
<body>
</body>
</html>
<c:redirect url="/manage"/>

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- zhang-upms-client -->
<filter>
<filter-name>zheng-upms-client</filter-name>
@ -90,6 +78,7 @@
</filter-mapping>
<!-- shiro -->
<!-- DelegatingFilterProxy作用是自动到spring容器查找名字为shiroFilterfilter-name的bean并把所有Filter的操作委托给它。然后将shiroFilter配置到spring容器即可 -->
<filter>
<filter-name>shiroFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>

View File

@ -8,6 +8,7 @@
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 根目录'/'对应页面 -->
<mvc:view-controller path="/" view-name="/index"/>
</beans>

View File

@ -12,6 +12,6 @@
<title>首页</title>
</head>
<body>
index
</body>
</html>

View File

@ -52,18 +52,6 @@
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- Spring Security -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- Druid连接池监控页面 -->
<servlet>
<servlet-name>DruidStatView</servlet-name>