SSM框架的配置文件

SSM框架共需要四个xml配置文件web.xml,applicationContext.xml,spring-mvc.xml 和 sqlMapConfig.xml

1.web.xml



  PDPM
  
    index.html
    index.jsp
  
  
  
      contextConfigLocation
      classpath:applicationContext.xml
  
  
  
      dispatcher
      org.springframework.web.servlet.DispatcherServlet
      
          contextConfigLocation
          classpath:spring-mvc.xml
      
      3
  
  
      dispatcher
      *.action
  
  
  
      org.springframework.web.context.ContextLoaderListener
  

  
  
      encodingFilter
      org.springframework.web.filter.CharacterEncodingFilter
      
          encoding
          UTF-8
      
      
          forceEncoding
          true
      
  
  
      encodingFilter
      /*
  

2.applicationContext.xml




      
     
	
	
	
	
		  
		
		 
		
		 
		
		 
		
		
		
		
		
	
	
	
	
	     
		
		 
		
	

	
	
	
		
		
	
	
	
	
		
		
	

	
	

3.spring-mvc.xml




        
        
        
        
        
        
        
        
        
        
        
        
        
   

4.sqlMapConfig.xml




	
	
		
		
	



你可能感兴趣的:(毕设学习)