【问题标题】:How to set web.xml to org.apache.tomee.embedded.Configuration如何将 web.xml 设置为 org.apache.tomee.embedded.Configuration
【发布时间】:2017-09-01 15:55:51
【问题描述】:

问题的本质:如何将自己的web.xml文件传输到

new org.apache.tomee.embedded.Configuration().setWebXml("file_name")

当我将 http 端口设置为 new org.apache.tomee.embedded.Configuration().setHttpPort(_port) 时工作正常。

但是,当设置web.xml 时它不起作用。

【问题讨论】:

    标签: web.xml apache-tomee


    【解决方案1】:

    我认为setWebXml 是无效配置,但您可以setConf("/folder/in/resources") 并在此文件夹中放置web.xml。它会将它放在 conf 文件夹中并做你想做的事

    【讨论】:

      猜你喜欢
      • 2018-09-16
      • 2012-10-12
      • 1970-01-01
      • 2012-11-13
      • 1970-01-01
      • 1970-01-01
      • 2013-07-09
      • 2019-02-16
      • 1970-01-01
      相关资源
      最近更新 更多