ww11

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>

分类:

技术点:

相关文章:

  • 2021-12-08
  • 2021-04-27
  • 2021-06-18
  • 2022-01-21
  • 2022-01-25
  • 2022-01-26
  • 2021-09-18
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-11-18
  • 2021-08-31
  • 2022-01-25
  • 2022-02-11
  • 2021-09-22
相关资源
相似解决方案