xuxiaowei-com-cn commented on code in PR #8054: URL: https://github.com/apache/incubator-seata/pull/8054#discussion_r3208142420
########## server/src/main/java/org/apache/seata/server/cluster/raft/context/SeataClusterContext.java: ########## @@ -16,14 +16,13 @@ */ package org.apache.seata.server.cluster.raft.context; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; Review Comment: - When upgrading `console/namingserver/server` to Spring Boot 4, the packages such as `javax.annotation` are migrated to `jakarta.annotation`. The fundamental reason is that Jakarta EE (Jakarta Enterprise Edition, formerly known as Java EE) permanently changed its API package namespace from `javax.*` to `jakarta.*` starting from version 9. Spring Boot 4 adopts the latest Jakarta EE 11 as its baseline, requiring all project code and dependent libraries to comply with this new namespace. - `console/namingserver/server` 升级到 Spring Boot 4 时,将 `javax.annotation` 等包迁移到 `jakarta.annotation`,根本原因是 Jakarta EE(Jakarta Enterprise Edition,曾用名 Java EE)从版本 9 开始,将其API的包命名空间从 `javax.*` 永久性改为了 `jakarta.*`。Spring Boot 4 通过采纳最新的 Jakarta EE 11 作为基准,要求所有项目代码和依赖库都必须遵守这一新的命名空间。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
