gpt4 book ai didi

maven - 依赖类型 ejb 和 ejb-client 有什么区别

转载 作者:行者123 更新时间:2023-12-01 12:39:09 26 4
gpt4 key购买 nike

如果你在 pom.xml 中包含一个依赖项有什么区别呢

<dependency>
<groupId>group.Id</groupId>
<artifactId>artifact.Id</artifactId>
<type>ejb-client</type>
<scope>runtime</scope>
</dependency>

对比

<dependency>
<groupId>group.Id</groupId>
<artifactId>artifact.Id</artifactId>
<type>ejb</type>
<scope>runtime</scope>
</dependency>

最佳答案

ejb类型是指包含ejb接口(interface)和实现、配置文件等的jar文件。

ejb-client 类型指的是一个只包含 ejb 接口(interface)类的 jar 文件。 IE。仅调用 ejb 的客户端所需的内容。

maven-ejb-plugin 在其配置中有默认或自定义的配置,允许从客户端中排除 EJB 实现类。

关于maven - 依赖类型 ejb 和 ejb-client 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26730932/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com