ssm整合

aplicationContext.xml

    
    
    
    
    
    
    
    
    
    
     
     
    

springmvc.xml



    
    
    
    
        
        
            
                
                    
                        
                            
                                
                            
                        
                    
                
            
        
    
    
    
        
        
        
        
    
    
    
    
    

mybiatis-config.xml




    
    
        
            
            
            
                
                
                
                
                
            
        
    
    
    
        
        
        
    

web.xml



    
    
    org.springframework.web.context.ContextLoaderListener
    
    
    
    contextConfigLocation
    classpath:config/applicationContext.xml
    
    
    
        springmvc
        org.springframework.web.servlet.DispatcherServlet
        
        
        contextConfigLocation 
        classpath:config/qq-servlet.xml
        
    
    
        springmvc
        *.do
    
    
    
    bm
    org.springframework.web.filter.CharacterEncodingFilter
    
    
    encoding
    utf-8
    
    
    
    bm
    /*
    
    
    
        index.jsp
    

mapper.xml





    
        
        
        
        
    
    
        insert into tab_user values(null,#{uname},#{pwd},#{js});
    
    
    
        delete from tab_user where id=#{id}
    
    
    
        delete from tab_user where id in
        
            #{id}
        
    
    
    
        update tab_user
        
            
                
                    uname=#{uname}
                
                
                    pwd=#{pwd}
                
                
                    js=#{js}
                
            
        
        where id=#{id}
    
    
    
    
    
    
    
    
    
    
    


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