Эх сурвалжийг харах

git-svn-id: https://192.168.57.71/svn/jsgkj@1937 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd 8 жил өмнө
parent
commit
d681c213bf

+ 10 - 1
gkaqv2/trunk/modules/web/src/main/resources/spring/spring-shiro.xml

@@ -40,6 +40,12 @@
 	    <property name="captchaEbabled" value="false"/>  
 	    <property name="captchaParam" value="captcha"/>  
 	    <property name="failureKeyAttribute" value="shiroLoginFailure"/>  
+	</bean> 
+	<bean id="sslFilter" class="org.apache.shiro.web.filter.authz.SslFilter">  
+	    <property name="port" value="8443"/>  
+	</bean>  
+	<bean id="httpFilter" class="com.xt.js.gkaq.common.HttpFilter">  
+	    <property name="port" value="8080"/>  
 	</bean>  
 	<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
 		<property name="securityManager" ref="securityManager" />
@@ -49,13 +55,16 @@
 			<map>
 				<entry key="authc" value-ref="gkaqFormAuthenticationFilter" />
 				<entry key="captchaValidate" value-ref="captchaValidateFilter"/>
+				<entry key="ssl" value-ref="sslFilter"/>  
+				<entry key="http" value-ref="httpFilter"/>  
 				<!-- <entry key="logout" value-ref="gkaqLogoutFilter" /> -->
 			</map>
 		</property>
 		<property name="filterChainDefinitions">
 			<value>
 				/favicon.ico = anon
-				/login = captchaValidate,authc  
+				/login = captchaValidate,authc,ssl
+				/index = authc,http
 				/logout = logout
 				/authCtl/** = anon
 				/static/** = anon