Eclipse tomcat发布server options说明

本文介绍了Tomcat服务器中两种新的发布选项:直接从WebContent文件夹提供内容而不进行发布,以及将模块上下文发布到单独的XML文件中。这两种方式分别适用于不同场景的需求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Serve modules without publishing:这个选项是WebContent的文件夹会作为动态web project发布过去,用户自定义的context管理类包的依赖,eclipse classpath设置需要的jar都会按照WebDeployment的设置完全移动过去。

 

Publish module contexts to separate XML files就是server.xml中的context配置会作为单独的文件发布。

 

Tomcat Publishing Options

    • Two new options which affect publishing are now available in the Server Options section of the Tomcat server editor. The Tomcat server must be 5.0.x or later for these options to be enabled. The 

Serve modules without publishing

    •  option does what it says. Web content will be served directly from the "WebContent" folder of the Dynamic Web Project. A customized context is used to make the project's dependencies available in the Web application's classloader. The 

Publish module contexts to separate XML files

    •  option will publish contexts using the preferred method of separate XML files under the "conf/Catalina/localhost" directory, rather than keeping them in the "server.xml" file. A couple of improvements for this option are noted in Bugs 180931 and 180936. 



Tomcat publishing options

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值