飞跃世纪末

导航

ecplise中设置字符编码

ecplise 设置

1 ecplise编码格式

右键 在general-workspace- text file encoding 选择utf-8

2 jsp文件编码格式 web-jspfile-encoding

tomcat设置

1 URl地址中传递值的编码格式配置,使可以传递中文格式的值, services-service- 添加xml-URLEncoding="gbk"到Connector标签中

 <Connector URLEncoding="gbk" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

2 方便代码编写编译,修改代码不需要重启服务器。 services-service-设置reloadable="false"

 <Context docBase="myWeb" path="/myWeb" reloadable="false" source="org.eclipse.jst.jee.server:myWeb"/></Host>

posted on 2018-08-08 22:06  小萝卜的烤兔店  阅读(181)  评论(0编辑  收藏  举报