ssh整合

1.struts2整合Spring

web.xml


    
    
        strut2
        org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
        
        
            config
            struts-default.xml,struts-plugin.xml,config/struts.xml
        
    
    
        strut2
        /*
    
    
    
        org.springframework.web.context.ContextLoaderListener
    
    
    
        contextConfigLocation
        classpath:config/applicationContext.xml
    

-----------------------------------------------------------------------------
struts.xml



    
        
        WEB-INF/per/list.jsp
        WEB-INF/per/add.jsp
        
        WEB-INF/per/update.jsp
        user_list
        
    

--------------------------------------------------------------------------------
applicationContext.xml

2.Spring整合hibernate(完全整合)


    
    
    
    
    
      
      org.hibernate.dialect.MySQL5Dialect
      update
      true
      true
      
    
    
    
     
      com/hw/entity/User.hbm.xml
     
     
    
    
    
      
    

2.Spring整合hibernate(分开整合)


    
    
    
     
    
    
      
    

3.事物


     
    
    
      
      
      
      
      
       
      
       
     


     
    
    
    

你可能感兴趣的:(ssh整合)