JBoss WildFly 上的 Spring Boot 3 和模块排除

问题描述 投票:0回答:1

我正在将用 Spring Boot 3.2.5 编写的 Web 应用程序部署到新的 WildFly 31.0.1 中

ℹ️我知道,在 WildFly 上运行 Spring Boot 应用程序没有多大意义,但我支持具有特定品味的各种客户。

由于我使用 Hibernate,我记得 WildFly 有自己的版本,它可能会导致问题(还有其他依赖项)。根据文档https://docs.wildfly.org/31/Developer_Guide.html#managing-dependency我试图排除

WEB-INF/jboss-deployment-structure.xml

中的模块
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
  <deployment>
    <exclusions>
       <module name="org.hibernate"/>
    </exclusions>
  </deployment>
</jboss-deployment-structure>

即使路径

wildfly-31.0.1.Final/modules/system/layers/base/org/hibernate/main/module.xml
存在,我也会收到警告:

WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0274: Excluded dependency org.hibernate via jboss-deployment-structure.xml does not exist.

这让我很困惑。所以问题是:还需要排除吗?如果需要,应该如何正确地进行?

spring-boot jboss wildfly
1个回答
0
投票

貌似模块

org.hibernate
默认是没有开启的,但是需要添加一个触发器。但在我的情况下它没有被触发https://docs.wildfly.org/31/Developer_Guide.html#which-are-the-implicit-module-dependency

© www.soinside.com 2019 - 2024. All rights reserved.