spring 的读取配置方案

来源:百度文库 编辑:神马文学网 时间:2024/04/20 03:47:15
方案1.---------------------------------------------------------------------------------------
  struts配置文件
 
     property="contextConfigLocation"
   value="classpath:applicationContext.xml" />
 

 
    spring配置文件
  方案2.---------------------------------------------------------------------------------------
  web.xml
 
   contextConfigLocation
   classpath:applicationContext.xml
 

  
 
 org.springframework.web.context.ContextLoaderListener
 
  struts配置文件
    spring配置文件
  方案3.---------------------------------------------------------------------------------------
  web.xml
 
  contextConfigLocation
 classpath:applicationContext.xml
 

 
  context
 org.springframework.web.context.ContextLoaderServlet
   1
 
  struts配置文件
    spring配置文件