此规则会标记具有以 /* 结尾的指定值的任何 javax.ws.rs.ApplicationPath 注释。
jaxrs-2.0 和 jaxrs-2.1 Liberty 功能部件支持在 ApplicationPath 注释值的末尾将 /* 用作通配符。
例如,@ApplicationPath("/my/rest/application/*") 和 @ApplicationPath("/my/rest/application") 会注册同一应用程序路径 /my/rest/application/<subpath> 中 Application 子类的资源。
restfulWS-3.0 Liberty 功能部件始终将 ApplicationPath 注释值中的 /* 解释为字面字符串,因此 @ApplicationPath("/my/rest/application/*") 会注册应用程序路径 /my/rest/application/*/<subpath> 中 Application 子类的资源。
提供了一个自动修复方法,以移除值末尾的 /*。 @ApplicationPath 值。 将定制配置复制到应用程序构建文件以启用修订自动化。
有关更多信息,请参阅 Jakarta EE 9.1 与 8.0 之间的差异。