读书人

MyEclipse设置快捷键跟xml中编码的设置

发布时间: 2012-08-21 13:00:21 作者: rapoo

MyEclipse设置快捷键和xml中编码的设置

1.Alt+/不管用原因:新版本中MyEclipse的Alt+/是别的快捷键,Ctrl+Space是提示标签快捷键,而Ctrl+Space与输入法切换冲突不能用。MyEclipse设置Alt+/快捷键

1). 点击Windows->Preferences->General->Keys

2). 在快捷键列表中找到:Word Competion,把它的快捷键 Alt+/ 改成其它的快捷键(方法:先把此快捷键删除,点右边的按钮"Remove Binding", 再选中Binding文本框,输入你想要的快捷键)。

3). 在快捷键列表中找到:Content Assist,把它的快捷键 Ctrl+Space 改成我们要的

2.如何设置编码,使得get方式提交传递变量时中文

在tomcat中的server.xml中增加一句 URIEncoding="UTF-8"

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>


3.如何设置使得每次部署项目时不需再起tomcat服务器

在tomcat的content.xml中增加一句reloadable="true"

<!-- The contents of this file will be loaded for each web application -->
<Context reloadable="true">

4.如何设置session时限

一般而言,session默认在服务器端保存30分钟,但是要是时间短点,可以再web.xml中进行设置

<session-config>
<session-timeout>20</session-timeout><!--以分钟为时限20分钟 -->
</session-config>

读书人网 >XML SOAP

热点推荐