Spring URIEncoding被忽略-tomcat7 ubuntu服务器11.04

Spring URIEncoding被忽略-tomcat7 ubuntu服务器11.04,spring,apache,ubuntu,apache2,tomcat7,Spring,Apache,Ubuntu,Apache2,Tomcat7,我将apache和tomcat7与mod_jk一起使用。在tomcat7/conv/server.xml中,我使用以下AJP连接器 <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" /> 在/etc/apache2/conf.d/charset中,我删除了下面一行中的注释 AddDefaultCharset UTF-8 在我的spring应用程序中,我

我将apache和tomcat7与mod_jk一起使用。在tomcat7/conv/server.xml中,我使用以下AJP连接器

  <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
    URIEncoding="UTF-8"
/>

在/etc/apache2/conf.d/charset中,我删除了下面一行中的注释

AddDefaultCharset UTF-8

在我的spring应用程序中,我甚至添加了以下web过滤器(尽管在我的本地或开发环境中不需要此步骤)


字符编码滤波器
org.springframework.web.filter.CharacterEncodingFilter
编码
UTF-8
强制编码
真的
尽管有所有这些设置,但当我发布表单数据时,请求参数值在到达spring控制器时具有+符号而不是空格。我是不是错过了其他的场景


我曾尝试使用端口8080而不是mod_jk直接连接到tomcat,但我仍然遇到同样的问题。

如果您使用JSP进行查看,是否将s的内容类型设置为:text/html;标题中的字符集=UTF-8

<filter>
    <filter-name>CharacterEncodingFilter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
        <param-name>encoding</param-name>
        <param-value>UTF-8</param-value>
    </init-param>
    <init-param>
        <param-name>forceEncoding</param-name>
        <param-value>true</param-value>
    </init-param>
</filter>