Spring3.0 基本配置

Spring3.0 基本配置需要一下几个包 
org.springframework.asm-3.0.2.RELEASE.jar 
org.springframework.beans-3.0.2.RELEASE.jar 
org.springframework.context-3.0.2.RELEASE.jar 
org.springframework.core-3.0.2.RELEASE.jar 
org.springframework.expression-3.0.2.RELEASE.jar 
org.springframework.web-3.0.2.RELEASE.jar
 

置于配置 
web.xml 
Xml代码   收藏代码
  1. xml version="1.0" encoding="UTF-8"?>  
  2. >  
  3. <web-app>  
  4.   
  5.     <display-name>FlexSpring3display-name>  
  6.     <description>BlazeDS Applicationdescription>  
  7.   
  8.     <context-param>  
  9.         <param-name>flex.class.pathparam-name>  
  10.         <param-value>/WEB-INF/flex/hotfixes,/WEB-INF/flex/jarsparam-value>  
  11.     context-param>  
  12.   
  13.     <context-param>  
  14.         <param-name>contextConfigLocationparam-name>  
  15.         <param-value>  
  16.             classpath*:configs/applicationContext*.xml  
  17.         param-value>  
  18.     context-param>  
  19.   
  20.       
  21.     <listener>  
  22.         <listener-class>org.springframework.web.context.ContextLoaderListenerlistener-class>  
  23.     listener>  
  24.       
  25.     <listener>  
  26.         <listener-class>flex.messaging.HttpFlexSessionlistener-class>  
  27.     listener>  
  28.   
  29.       
  30.     <servlet>  
  31.         <servlet-name>MessageBrokerServletservlet-name>  
  32.         <display-name>MessageBrokerServletdisplay-name>  
  33.         <servlet-class>flex.messaging.MessageBrokerServletservlet-class>  
  34.         <init-param>  
  35.             <param-name>services.configuration.fileparam-name>  
  36.             <param-value>/WEB-INF/flex/services-config.xmlparam-value>  
  37.        init-param>  
  38.         <load-on-startup>1load-on-startup>  
  39.     servlet>  
  40.   
  41.     <servlet-mapping>  
  42.         <servlet-name>MessageBrokerServletservlet-name>  
  43.         <url-pattern>/messagebroker/*url-pattern>  
  44.     servlet-mapping>  
  45.   
  46.     <welcome-file-list>  
  47.         <welcome-file>index.htmlwelcome-file>  
  48.         <welcome-file>index.htmwelcome-file>  
  49.     welcome-file-list>  
  50.   
  51.       
  52.     

你可能感兴趣的:(java)