【SpringMVC】web.xml和spring_mvc.xml文件配置

1.web.xml


  Archetype Created Web Application



  CharacterEncodingFilter
  org.springframework.web.filter.CharacterEncodingFilter
  
    encoding
    UTF-8
  
  
    ForceEncoding
    true
  

  
    CharacterEncodingFilter
    /*
  


  HiddenHttpMethodFilter
  org.springframework.web.filter.HiddenHttpMethodFilter

  
    HiddenHttpMethodFilter
    /*
  

  
    SpringMVC
    org.springframework.web.servlet.DispatcherServlet
    
      contextConfigLocation
      classpath:springmvc.xml
    
    1
  
  
    SpringMVC
    /
  

2.spring_mvc.xml




    

    
    
        
        
        
            
                
                    
                        
                        
                        
                        
                        
                        
                    
                
            
        
    

        
        
    
    
    
        
        



    
















你可能感兴趣的:(ssm,xml,java,spring)