Apache Tomcat Server Options 选项说明

来源:互联网 发布:知乎 金庸 编辑:程序博客网 时间:2024/06/06 01:14

Apache Tomcat Server Options 选项说明


p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px '.PingFang SC'; color: #454545}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545; min-height: 14.0px}span.s1 {font: 12.0px '.PingFang SC'}span.s2 {font: 12.0px 'Helvetica Neue'}

1Server Options的第一个选项Serve modules without publishing

在默认情况下,当项目部署到tomcat中,该插件会把项目文件拷贝到上一个配置项Server Locations中的显示Server pathwtpwebapps目录下,即当前wrokspace所在目录下的。metadata子目录中,如我的wrokspaceD:\workspace,那么该目录是:D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps

但如果选中上面的这个选项,则不会把项目文件发布到该目录下运行,而是:

web资源目录是:web项目的WebContent,即maven web项目的src/main/webapp目录

class文件目录是:是当前配置的class文件的输出目录,即maven项目的target/classes目录

2Timeouts

默认情况下start45秒,stop15秒,这里可能需要修改一下start为一个合适大的值,它的意思是当启动时间超过这里指定的时间还没有启动完成时,就报错。当我们的项目启动很耗时的情况下,这显然不是我们想要的,所以需要修改一下这个值。


勾选上Server Options->Serve Modules without publishing,不勾的话,修改类文件里就会不停的重启Web服务器;如果Web项目启动时间比较长的话,还需要修改超时时间,这个在Timeouts里面设置

优化

找到菜单,Window->Preferences

检查英文的拼写没什么用处,这里把拼写检查取消,位置:General->Editors->Text Editors->Spelling,把Enable spell checking 取消勾选

还有一处的检查也可以取消 位置:Validation,勾选Suspend all validators

显示行号 位置:General->Editors->Text Editors,勾选Show line numbers

jsp页面的默认编码方式改为utf-8 位置:Web->JSP FilesEncoding改为ISO 10646/Unicode(UTF-8)


原创粉丝点击