All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.wf-filter.xml Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
<?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:context="http://www.springframework.org/schema/context"
	xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">

	<bean id="wfFilterContext" class="org.webframe.web.filter.WFFilterContext"/>

	<bean class="org.webframe.web.filter.WFFilterManager">
		<property name="order" value="1"/>
		<!-- beforeSecurity -->
		<property name="propertyName" value="beforeSecurity"/>
		<property name="appended">
			<list>
				<!-- 参数编码Filter -->
				<bean class="org.springframework.web.filter.CharacterEncodingFilter">
					<property name="encoding" value="UTF-8"/>
					
					<!-- 是否设置response 编码,默认为false -->
					<property name="forceEncoding" value="true"/>
				</bean>
				<!-- Hibernate长Session -->
				<bean class="org.webframe.web.filter.WFLongSessionFilter">
					<property name="singleSession" value="true"/>
				</bean>
			</list>
		</property>
	</bean>
	
	<bean class="org.webframe.web.filter.WFFilterManager">
		<property name="order" value="1"/>
		<!-- afterSecurity -->
		<property name="propertyName" value="afterSecurity"/>
		<property name="appended">
			<list>
				<!-- 自定义javax.servlet.Filter
				<bean class="org.webframe.web.filter.AfterSecurityFilter"/>
				 -->
			</list>
		</property>
	</bean>
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy