Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何在AWS Elastic Beanstalk环境中将Tomcat的URIencoding设置为UTF8?_Amazon Web Services_Tomcat7_Amazon Elastic Beanstalk - Fatal编程技术网

Amazon web services 如何在AWS Elastic Beanstalk环境中将Tomcat的URIencoding设置为UTF8?

Amazon web services 如何在AWS Elastic Beanstalk环境中将Tomcat的URIencoding设置为UTF8?,amazon-web-services,tomcat7,amazon-elastic-beanstalk,Amazon Web Services,Tomcat7,Amazon Elastic Beanstalk,部署在Tomcat 7上的应用程序需要能够正确处理get查询中的非拉丁字符,为此,我必须将URIEncoding=UTF-8添加到server.xml文件中 然后重新启动Tomcat,这样就可以了 但是,在使用Amazon Web服务和Elastic Beanstalk时,我如何做到这一点呢?您可能需要使用自己的server.xml。您可以使用ebextensions配置文件替换它 看看这个问题: 很好,为了澄清,我应该复制一份当前部署在EB上的版本,并对其进行编辑,然后使用我已经在部署中使用的

部署在Tomcat 7上的应用程序需要能够正确处理get查询中的非拉丁字符,为此,我必须将URIEncoding=UTF-8添加到server.xml文件中

然后重新启动Tomcat,这样就可以了


但是,在使用Amazon Web服务和Elastic Beanstalk时,我如何做到这一点呢?您可能需要使用自己的server.xml。您可以使用ebextensions配置文件替换它

看看这个问题:

很好,为了澄清,我应该复制一份当前部署在EB上的版本,并对其进行编辑,然后使用我已经在部署中使用的eExtensions。是的,或者另一种选择是使用类似sed的东西来替换连接器线路。
 <Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               URIEncoding="UTF-8"/>