|
|
@@ -1,22 +1,17 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
|
|
|
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
|
|
|
|
|
|
<description>zheng-upms</description>
|
|
|
|
|
|
<!-- Shiro的Web过滤器 -->
|
|
|
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
|
|
|
<property name="securityManager" ref="securityManager"/>
|
|
|
- <property name="loginUrl" value="/sso/login"/>
|
|
|
+ <property name="loginUrl" value="http://upms.zhangshuzheng.cn:1111/sso/login"/>
|
|
|
<property name="successUrl" value="/manage"/>
|
|
|
<property name="unauthorizedUrl" value="/403"/>
|
|
|
- <property name="filters">
|
|
|
- <util:map>
|
|
|
- <entry key="authc" value-ref="formAuthenticationFilter"/>
|
|
|
- </util:map>
|
|
|
- </property>
|
|
|
<property name="filterChainDefinitions">
|
|
|
<value>
|
|
|
/manage/** = upmsSessionForceLogout,authc
|
|
|
@@ -109,15 +104,6 @@
|
|
|
|
|
|
<!-- cacheManager -->
|
|
|
|
|
|
- <!-- 登录表单过滤器 -->
|
|
|
- <bean id="formAuthenticationFilter"
|
|
|
- class="org.apache.shiro.web.filter.authc.FormAuthenticationFilter">
|
|
|
- <property name="usernameParam" value="username"/>
|
|
|
- <property name="passwordParam" value="password"/>
|
|
|
- <property name="rememberMeParam" value="rememberMe"/>
|
|
|
- <property name="loginUrl" value="/sso/login"/>
|
|
|
- </bean>
|
|
|
-
|
|
|
<!-- 设置SecurityUtils,相当于调用SecurityUtils.setSecurityManager(securityManager) -->
|
|
|
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
|
|
<property name="staticMethod" value="org.apache.shiro.SecurityUtils.setSecurityManager"/>
|