java - 将 webapp 转换为 war 文件时覆盖现有源文件意味着什么

标签 java eclipse maven tomcat java-10

what does export source file mean. will it make it more stable and should i choose optimize for a specific run timeenter image description here

最佳答案

  • 点击帖子中显示的 WAR 导出 屏幕左下角的问号,然后会打开一个帮助面板。
  • 单击名为搜索 WAR 导出 的链接。
  • 单击名为Exporting Web Archive (WAR) files 的链接。
  • 显示以下文本,解决了您提出的有关导出源文件覆盖现有文件 的问题:

    Optionally, supply WAR export Options, such as whether or not to include Java™ source files in the WAR, and whether to overwrite any existing resources during the export process. Source files are not usually included in a WAR file, because they are not necessary for the server to run the web application.

  • Overwrite existing file 复选框的目的是防止您意外覆盖现有的 WAR 文件:如果在 Destination 字段中指定的文件已经存在并且 < strong>Overwrite existing files 复选框未选中,然后 Finish 按钮被禁用,并显示一条错误消息。
  • 关于Optimize for a specific server runtime 复选框,如果您知道 WAR 文件将部署在哪个服务器上,则应选中它,在这种情况下,您将被迫从掉落 list 。

关于java - 将 webapp 转换为 war 文件时覆盖现有源文件意味着什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51325326/

相关文章:

java - Spring Security - SPRING_SECURITY_LAST_EXCEPTION 的文档

eclipse - 如何在 Eclipse 中自动格式化代码?

java - 使用 java 7 编译 Equinox 3.8.2 项目

java - 将类实现到现有类中

java - 尝试安装 eclipse,但我得到 "Java was started but returned exit code = 1"

eclipse - 如何在 Eclipse 中开发 Netbeans 平台应用程序?

java - Gradle:使用 `Configuration` 及其依赖集找出 Maven 依赖范围

java - Springboot API 将请求放入队列?

java - Maven 属性前缀 "user"和 "maven"有特殊含义吗?

java.lang.IllegalStateException : Activity has been destroyed on creating a datepicker dialog