struts2+hibernate+spring配置管理一

来源:百度文库 编辑:神马文学网 时间:2024/05/23 13:38:18
 struts2+hibernate+spring配置管理(一)——配置文件 收藏
web.xml  
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  
      
      
        contextConfigLocation  
        classpath*:spring/*.xml  
   
  
  
       
      
      
        encodingFilter  
        org.springframework.web.filter.CharacterEncodingFilter  
          
            encoding  
            UTF-8  
       
  
   
  
      
      
        hibernateFilter  
        org.springframework.orm.hibernate3.support.OpenSessionInViewFilter  
   
  
      
      
        eXtremeExport  
        org.extremecomponents.table.filter.ExportFilter  
   
  
      
        encodingFilter  
        *.do  
   
  
      
        encodingFilter  
        *.jsp  
   
  
      
        hibernateFilter  
        *.do  
   
  
  
  
      
      
        org.springframework.web.context.ContextLoaderListener  
   
  
  
      
      
        org.springframework.web.util.IntrospectorCleanupListener  
   
  
  
       
      
      
        10  
   
  
  
  
struts.xml         "http://struts.apache.org/dtds/struts-2.0.dtd">    
    
           
       
        
          
            /login_success.jspresult>  
            /login.jspresult>  
       < action>  
  
       
applicationContext.xml       
      
      
             
                 
                 
                 
                      
                   
               
                
               
                      
               
                      
                
                 
                 
              
                 
              
                 
                     
                 
          
          
            class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">      
              
                  
              
              
                  
                org.hibernate.dialect.Oracle9Dialectprop>      
                trueprop>      
                trueprop>      
                autoprop>      
                trueprop>                   
                  
              
               
              
                  
                classpath:com/caitong/pingou/bean      
                  
                                       
              
          
          
              
                    
                        
         < property>          
            
              
              
                  
                
                    
                      
                PROPAGATION_REQUIREDprop>        
                PROPAGATION_REQUIRED,readOnlyprop>        
           < props>        
                
              
                 
             
                
            *Servicevalue>        
                
                  
                      
                transactionInterceptorvalue>          
                          
                     
                 
              
          
              
                    
            
          
          
              
                  
        property>      
          
            class="com.caitong.pingou.dao.impl.UserDAO" parent="baseDAO">      
         
          
            autowire="byName">      
         
          
            autowire="byName">      
          
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/impeller/archive/2007/10/22/1838254.aspx