eclipse中Tomcat的配置

来源:互联网 发布:linux命令窗口快捷键 编辑:程序博客网 时间:2024/05/18 02:43


设置1:在Server Locations里,选择Use Tomcat installation。这样发布项目时会把文件发布到Tomcat安装目录下。默认是在Eclipse的Server项目中,路径特别深,所以想查看文件特别麻烦。

 

设置2——Server Options:在Server Options里,选择Publish module contexts to separate XML files。

不选时可能会出现类似下面的错误:

WARNING: [SetPropertiesRule] (Server / Service / Engine / Host / Context) Setting property 'source' to 'org.eclipse.jst.j2ee.server: cont' did not find a matching property.

原因:

In fact there SetPropertiesRule warning because Tomcat's Context in server.xml does not support the source node attributes:

选择后会使本来配置在conf/server.xml里的<context>元素,separate到/conf/Catalina/localhost/的目录下专门生成一个{context_name}.xml。

 

设置3——Timeouts:如果项目启动时间较长,可以将Timeouts时间改长点。

 

设置4——ports:在ports可以更改端口号。

0 0
原创粉丝点击