当前位置: 代码迷 >> Web前端 >> 在web.xml资料中配置Spring集成信息
  详细解决方案

在web.xml资料中配置Spring集成信息

热度:156   发布时间:2012-08-25 10:06:20.0
在web.xml文件中配置Spring集成信息

1.

<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            /WEB-INF/config/bussinessContext.xml
        </param-value>
</context-param>

2.

<filter>
    	<filter-name>encodingFilter</filter-name>
    	<filter-class>
    		org.springframework.web.filter.CharacterEncodingFilter
    	</filter-class>
    	<init-param>
    		<param-name>encoding</param-name>
    		<param-value>UTF-8</param-value>
    	</init-param>
</filter>

3.

<listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
     </listener>
     <listener>   
        <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>   
</listener>
?
  相关解决方案