传参数编码 解决@ModelAttribute接收到中文是乱码

web.xml关键代码:


    Set Character Encoding
    org.springframework.web.filter.CharacterEncodingFilter
    
        encoding
        UTF-8
    
    
        forceEncoding
        true
    


    Set Character Encoding
    /*

所有代码:



    Spring MVC Study
    
        contextConfigLocation
        /WEB-INF/configs/spring/applicationContext*.xml
    
    
        description.jsp
    
    
        org.springframework.web.context.ContextLoaderListener
    
    
        mvc-dispatcher
        org.springframework.web.servlet.DispatcherServlet
        
            contextConfigLocation
            /WEB-INF/configs/spring/mvc-dispatcher-servlet.xml
        
        1
    
    
        default
        *.ttf
    
    
        default
        *.woff2
    
    
        default
        *.woff
    
    
        mvc-dispatcher
        /
    
    
        Set Character Encoding
        org.springframework.web.filter.CharacterEncodingFilter
        
            encoding
            UTF-8
        
        
            forceEncoding
            true
        
    
    
        Set Character Encoding
        /*
    
    
        SessFil
        hehaoming.filter.SessFil
    
    
        SessFil
        /*
    
    
        SessFil
        *.do
    

你可能感兴趣的:(传参数编码 解决@ModelAttribute接收到中文是乱码)