From 0e8e991470ddcd75735bf80b4000356cc5462b67 Mon Sep 17 00:00:00 2001 From: laynexiong Date: Fri, 11 Jul 2025 16:27:03 +0800 Subject: [PATCH] feat: upgrade license --- CONTRIBUTING.md | 2 +- CONTRIBUTING.zh_CN.md | 35 +++--- LICENSE | 3 +- .../trpc/demo/chain/AsyncChainClientDemo.java | 3 +- .../trpc/demo/chain/HelloServiceBaseImpl.java | 2 +- .../trpc/demo/chain/HelloServiceImplA.java | 2 +- .../trpc/demo/chain/HelloServiceImplB.java | 2 +- .../trpc/demo/chain/HelloServiceImplC.java | 2 +- .../trpc/demo/chain/HelloServiceImplD.java | 2 +- .../trpc/demo/chain/HelloServiceImplE.java | 2 +- .../trpc/demo/chain/HelloServiceImplF.java | 2 +- .../trpc/demo/chain/HelloServiceImplG.java | 2 +- .../trpc/demo/chain/SyncChainClientDemo.java | 2 +- .../demo/coroutine/TrpcServerApplication.java | 2 +- .../coroutine/controller/HelloController.java | 2 +- .../coroutine/service/HelloServiceImpl.java | 2 +- .../trpc/demo/gatewayclient/GatewayAPI.java | 2 +- .../demo/gatewayclient/GatewayClient.java | 2 +- .../HelloClientNoneConfigFile.java | 2 +- .../demo/gatewayclient/HelloClientOnYaml.java | 2 +- .../trpc/demo/gatewayserver/HelloServer.java | 2 +- .../HelloServerNoneConfigFile.java | 2 +- .../demo/gatewayserver/HelloServiceImpl.java | 2 +- .../polaris/TrpcServerApplication.java | 2 +- .../polaris/limiter/PolarisLimiter.java | 2 +- .../polaris/service/AsyncServiceImpl.java | 2 +- .../polaris/service/HelloServiceImpl.java | 2 +- .../TrpcLimiterSentinelApplication.java | 2 +- .../sentinel/controller/HelloController.java | 2 +- .../sentinel/service/HelloServiceImpl.java | 2 +- .../TrpcLimiterSentinelApplicationTests.java | 2 +- .../HelloClientNoneConfigFile.java | 2 +- .../demo/simpleclient/HelloClientOnYaml.java | 2 +- .../trpc/demo/simpleserver/HelloServer.java | 2 +- .../HelloServerNoneConfigFile.java | 2 +- .../demo/simpleserver/HelloServiceImpl.java | 2 +- .../polaris/TrpcServerApplication.java | 2 +- .../polaris/controller/HelloController.java | 2 +- .../polaris/service/HelloServiceImpl.java | 2 +- .../polaris/TrpcServerApplication.java | 2 +- .../polaris/service/HelloServiceImpl.java | 2 +- .../polaris/TrpcServerApplication.java | 2 +- .../polaris/controller/HelloController.java | 2 +- .../polaris/service/HelloServiceImpl.java | 2 +- .../zookeeper/TrpcServerApplication.java | 2 +- .../zookeeper/controller/HelloController.java | 2 +- .../zookeeper/service/HelloServiceImpl.java | 2 +- .../demo/exception/TrpcServerApplication.java | 2 +- .../exception/controller/HelloController.java | 2 +- .../exception/handler/CustomizeException.java | 2 +- .../ExceptionHandlerConfiguration.java | 2 +- .../service/HelloServiceFuncImpl.java | 2 +- .../exception/service/HelloServiceImpl.java | 2 +- .../trpc/demo/http/TrpcServerApplication.java | 2 +- .../demo/http/controller/HelloController.java | 2 +- .../demo/http/service/HelloServiceImpl.java | 2 +- .../demo/polaris/TrpcServerApplication.java | 11 +- .../polaris/controller/HelloController.java | 2 +- .../polaris/service/AsyncServiceImpl.java | 2 +- .../polaris/service/HelloServiceImpl.java | 2 +- .../resources/META-INF/trpc/trpc_java.yaml | 4 +- .../java/com/tencent/trpc/demo/api/Hello.java | 102 +++++++++--------- .../com/tencent/trpc/demo/api/HelloAPI.java | 2 +- .../tencent/trpc/demo/api/HelloAsyncAPI.java | 2 +- .../tencent/trpc/demo/api/HelloFbpAPI.java | 2 +- .../trpc/demo/api/HelloFbpAsyncAPI.java | 2 +- 66 files changed, 150 insertions(+), 128 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 38d5280..8dd81d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -134,7 +134,7 @@ New files that you contribute should use the standard copyright header: /** * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/CONTRIBUTING.zh_CN.md b/CONTRIBUTING.zh_CN.md index c666cd0..472ab6d 100644 --- a/CONTRIBUTING.zh_CN.md +++ b/CONTRIBUTING.zh_CN.md @@ -4,30 +4,35 @@ 感谢您对 trpc-java-examples 的关注和支持! -我们欢迎并感激任何形式的贡献,包括但不限于提交 issue、提供改进建议、改进文档、修复错误和添加功能。 本文档旨在为您提供详细的贡献指南,以帮助您更好地参与项目。 +我们欢迎并感激任何形式的贡献,包括但不限于提交 issue、提供改进建议、改进文档、修复错误和添加功能。 +本文档旨在为您提供详细的贡献指南,以帮助您更好地参与项目。 在贡献之前,请仔细阅读本指南并确保遵循这里的规则。 我们期待与您共同努力,使这个项目变得更好! ## 在贡献代码之前 项目欢迎代码补丁,但为了确保事情得到良好协调,您应该在开始工作之前讨论任何重大变更。 建议您在 issue -跟踪器中表明您的贡献意图,可以通过[认领现有 issue](https://github.com/trpc-group/trpc-java-examples/issues)或[创建新 +跟踪器中表明您的贡献意图,可以通过[认领现有 issue](https://github.com/trpc-group/trpc-java-examples/issues) +或[创建新 issue](https://github.com/trpc-group/trpc-java-examples/issues/new) 来实现。 ### 查看 issue 跟踪器 -无论您已经知道要做哪些贡献,还是正在寻找想法,[issue 跟踪器](https://github.com/trpc-group/trpc-java-examples/issues)始终是您的第一个去处。 +无论您已经知道要做哪些贡献,还是正在寻找想法,[issue 跟踪器](https://github.com/trpc-group/trpc-java-examples/issues) +始终是您的第一个去处。 issue 会被分类以管理工作流程。 大多数 issue 都会被标记为以下工作流标签之一: - **NeedsInvestigation**:issue 尚未完全理解,需要分析以了解根本原因。 -- **NeedsDecision**:issue 相对已经理解得很好,但tRPC-Java团队尚未决定解决 issue 的最佳方法。 在编写代码之前最好等待决策。 +- **NeedsDecision**:issue 相对已经理解得很好,但tRPC-Java团队尚未决定解决 issue 的最佳方法。 + 在编写代码之前最好等待决策。 如果一段时间内没有决策且您有兴趣处理处于这种状态的 issue,请随时在 issue 评论中“ping”维护者。 - **NeedsFix**:issue 已完全理解,可以编写代码进行修复。 ### 为任何新问题打开一个 issue -除非是非常细小的变更,否则所有贡献都应与现有 issue 有关。 请随时打开一个 issue 并讨论您的计划。 这个过程让每个人都有机会验证设计,有助于防止工作重复,确保想法符合语言和工具的目标。 +除非是非常细小的变更,否则所有贡献都应与现有 issue 有关。 请随时打开一个 issue 并讨论您的计划。 +这个过程让每个人都有机会验证设计,有助于防止工作重复,确保想法符合语言和工具的目标。 在编写代码之前,还可以检查设计是否合理;代码审查工具并非用于高层次的讨论。 在提交 issue 时,请确保回答以下五个问题: @@ -43,7 +48,8 @@ issue 会被分类以管理工作流程。 ## 贡献代码 -遵循 [GitHub 流程](https://docs.github.com/en/get-started/quickstart/github-flow)来[创建 GitHub PR(Pull +遵循 [GitHub 流程](https://docs.github.com/en/get-started/quickstart/github-flow) +来[创建 GitHub PR(Pull Request)](https://docs.github.com/en/get-started/quickstart/github-flow#create-a-pull-request)。 如果你是第一次向 trpc-java-examples 项目提交 PR,那么在该 PR @@ -52,8 +58,10 @@ Request)](https://docs.github.com/en/get-started/quickstart/github-flow#create-a - 确保您的代码符合项目的代码规范。 这包括但不限于代码风格、注释规范等。这有助于我们维护项目的整洁性和一致性。 - 在提交 PR 之前,请确保您已在本地测试过您的代码。 确保代码没有明显的错误并且可以正常运行。 -- 要使用新代码更新拉取请求,只需将其推送到分支; 您可以添加更多提交,也可以 rebase 并 force-push(两种风格都可以接受)。 -- 如果请求被接受,所有提交将被压缩,最终提交描述将由 PR 的标题和描述组成。 单个提交的描述将被丢弃。 请参阅以下“编写良好的提交消息”以获取一些建议。 +- 要使用新代码更新拉取请求,只需将其推送到分支; 您可以添加更多提交,也可以 rebase 并 + force-push(两种风格都可以接受)。 +- 如果请求被接受,所有提交将被压缩,最终提交描述将由 PR 的标题和描述组成。 单个提交的描述将被丢弃。 + 请参阅以下“编写良好的提交消息”以获取一些建议。 ### 编写良好的提交消息 @@ -62,7 +70,8 @@ trpc-java-examples 中的提交消息遵循一套特定的约定,我们将在 以下是一个良好的示例: > math: improve Sin, Cos and Tan precision for very large arguments > -> The existing implementation has poor numerical properties for large arguments, so use the McGillicutty algorithm to improve accuracy above 1e10. +> The existing implementation has poor numerical properties for large arguments, so use the +> McGillicutty algorithm to improve accuracy above 1e10. > > The algorithm is described at https://wikipedia.org/wiki/McGillicutty_Algorithm > @@ -79,12 +88,14 @@ trpc-java-examples 中的提交消息遵循一套特定的约定,我们将在 #### 主要内容 -描述的其余部分应该详细说明,为变更提供上下文并解释它的作用。 像在 trpc-java-examples 中的注释一样,使用正确的标点符号写完整的句子。 不要使用 HTML、Markdown +描述的其余部分应该详细说明,为变更提供上下文并解释它的作用。 像在 trpc-java-examples +中的注释一样,使用正确的标点符号写完整的句子。 不要使用 HTML、Markdown 或任何其他标记语言。 添加任何相关信息,例如如果变更影响性能,请添加基准数据。 #### 引用 issue -特殊表示法 "Fixes #12345" 将变更与 trpc-java-examples issue 跟踪器中的 issue 12345关联。 当此变更最终应用时,issue 跟踪器将自动将该 +特殊表示法 "Fixes #12345" 将变更与 trpc-java-examples issue 跟踪器中的 issue 12345关联。 +当此变更最终应用时,issue 跟踪器将自动将该 issue 标记为已修复。 ## 其他主题 @@ -99,7 +110,7 @@ trpc-java-examples 代码仓库中的文件不列出作者姓名,以避免混 /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/LICENSE b/LICENSE index 59913cb..29047fb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,9 +1,10 @@ Tencent is pleased to support the open source community by making tRPC-Java available. -Copyright (C) 2023 THL A29 Limited, a Tencent company. All rights reserved. +Copyright (C) 2023 Tencent. All rights reserved. trpc-java-examples is licensed under the Apache License Version 2.0 except for the third-party components listed below. +The copyright notice pertaining to the Tencent code in this repo was previously in the name of “THL A29 Limited.” That entity has now been de-registered. You should treat all previously distributed copies of the code as if the copyright notice was in the name of “Tencent.” Terms of the Apache License Version 2.0: -------------------------------------------------------------------- diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/AsyncChainClientDemo.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/AsyncChainClientDemo.java index 846fa15..ef9f0d4 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/AsyncChainClientDemo.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/AsyncChainClientDemo.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, @@ -53,7 +53,6 @@ public class AsyncChainClientDemo { private static Hello.HelloReq requestE; - public static void main(String[] args) throws Exception { // start tRPC,主要是解析trpc-java.yaml,启动模拟的服务。 TRPC.start(); diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceBaseImpl.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceBaseImpl.java index 0901cfa..a19e00a 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceBaseImpl.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceBaseImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplA.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplA.java index 061355e..6b4eef0 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplA.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplA.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplB.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplB.java index 32e325b..90c09ca 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplB.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplB.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplC.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplC.java index 6148a0a..701e864 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplC.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplC.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplD.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplD.java index e2cc0c4..fd1c413 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplD.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplD.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplE.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplE.java index b91e6f1..2c168ba 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplE.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplE.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplF.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplF.java index 5c69f51..ceb3d13 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplF.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplF.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplG.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplG.java index 111b010..320a024 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplG.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/HelloServiceImplG.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/SyncChainClientDemo.java b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/SyncChainClientDemo.java index 8d2263f..e477ced 100644 --- a/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/SyncChainClientDemo.java +++ b/trpc-chain/src/main/java/com/tencent/trpc/demo/chain/SyncChainClientDemo.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/TrpcServerApplication.java b/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/TrpcServerApplication.java index 0fe5291..2b2f75a 100644 --- a/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/TrpcServerApplication.java +++ b/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/controller/HelloController.java b/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/controller/HelloController.java index 9591c71..5385f2e 100644 --- a/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/controller/HelloController.java +++ b/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/service/HelloServiceImpl.java b/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/service/HelloServiceImpl.java index d15e3d0..5c223a0 100644 --- a/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/service/HelloServiceImpl.java +++ b/trpc-coroutine/src/main/java/com/tencent/trpc/demo/coroutine/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayAPI.java b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayAPI.java index bc1b937..e19bc32 100644 --- a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayAPI.java +++ b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayAPI.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayClient.java b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayClient.java index a84b93b..fdde90e 100644 --- a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayClient.java +++ b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/GatewayClient.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientNoneConfigFile.java b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientNoneConfigFile.java index 9bfb61b..bab2b15 100644 --- a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientNoneConfigFile.java +++ b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientNoneConfigFile.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientOnYaml.java b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientOnYaml.java index d661335..bf56ecc 100644 --- a/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientOnYaml.java +++ b/trpc-gateway/trpc-gateway-client/src/main/java/com/tencent/trpc/demo/gatewayclient/HelloClientOnYaml.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServer.java b/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServer.java index 76c0791..f0d4871 100644 --- a/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServer.java +++ b/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServer.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServerNoneConfigFile.java b/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServerNoneConfigFile.java index 0e2d8bd..6df7835 100644 --- a/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServerNoneConfigFile.java +++ b/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServerNoneConfigFile.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServiceImpl.java b/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServiceImpl.java index dd88f60..fc0f8be 100644 --- a/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServiceImpl.java +++ b/trpc-gateway/trpc-gateway-server/src/main/java/com/tencent/trpc/demo/gatewayserver/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/TrpcServerApplication.java b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/TrpcServerApplication.java index 821b3c0..071f6c8 100644 --- a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/TrpcServerApplication.java +++ b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/limiter/PolarisLimiter.java b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/limiter/PolarisLimiter.java index 4e6c672..3b54108 100644 --- a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/limiter/PolarisLimiter.java +++ b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/limiter/PolarisLimiter.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/AsyncServiceImpl.java b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/AsyncServiceImpl.java index b2f8923..49f7054 100644 --- a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/AsyncServiceImpl.java +++ b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/AsyncServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/HelloServiceImpl.java b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/HelloServiceImpl.java index 5f28749..b19fbfc 100644 --- a/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/HelloServiceImpl.java +++ b/trpc-limiter/trpc-limiter-polaris/src/main/java/com/tencent/trpc/demos/limiter/polaris/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplication.java b/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplication.java index 4146404..7d7cb86 100644 --- a/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplication.java +++ b/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/controller/HelloController.java b/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/controller/HelloController.java index a66e5a2..51fcc0e 100644 --- a/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/controller/HelloController.java +++ b/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/service/HelloServiceImpl.java b/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/service/HelloServiceImpl.java index ffc20c2..a823222 100644 --- a/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/service/HelloServiceImpl.java +++ b/trpc-limiter/trpc-limiter-sentinel/src/main/java/com/tencent/trpc/demos/sentinel/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-limiter/trpc-limiter-sentinel/src/test/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplicationTests.java b/trpc-limiter/trpc-limiter-sentinel/src/test/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplicationTests.java index 65e51bc..9fcf533 100644 --- a/trpc-limiter/trpc-limiter-sentinel/src/test/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplicationTests.java +++ b/trpc-limiter/trpc-limiter-sentinel/src/test/java/com/tencent/trpc/demos/sentinel/TrpcLimiterSentinelApplicationTests.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientNoneConfigFile.java b/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientNoneConfigFile.java index e130b22..a997ec6 100644 --- a/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientNoneConfigFile.java +++ b/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientNoneConfigFile.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientOnYaml.java b/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientOnYaml.java index c8a486a..8e85836 100644 --- a/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientOnYaml.java +++ b/trpc-native/trpc-native-simpleclient/src/main/java/com/tencent/trpc/demo/simpleclient/HelloClientOnYaml.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServer.java b/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServer.java index c4954f2..f004d18 100644 --- a/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServer.java +++ b/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServer.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServerNoneConfigFile.java b/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServerNoneConfigFile.java index c4cda31..ceb97df 100644 --- a/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServerNoneConfigFile.java +++ b/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServerNoneConfigFile.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServiceImpl.java b/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServiceImpl.java index cf86b38..62b959a 100644 --- a/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServiceImpl.java +++ b/trpc-native/trpc-native-simpleserver/src/main/java/com/tencent/trpc/demo/simpleserver/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java b/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java index caa0797..0e8e3ff 100644 --- a/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java +++ b/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java b/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java index bfb3499..ce610f7 100644 --- a/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java +++ b/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java b/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java index 8b76a6d..4973e14 100644 --- a/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java +++ b/trpc-selector/trpc-selector-open-polaris-client/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java b/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java index 416ca34..e9e558b 100644 --- a/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java +++ b/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java b/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java index 8b76a6d..4973e14 100644 --- a/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java +++ b/trpc-selector/trpc-selector-open-polaris-server/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java b/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java index 416ca34..e9e558b 100644 --- a/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java +++ b/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java b/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java index bfb3499..ce610f7 100644 --- a/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java +++ b/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java b/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java index 8b76a6d..4973e14 100644 --- a/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java +++ b/trpc-selector/trpc-selector-open-polaris/src/main/java/com/tencent/trpc/examples/polaris/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/TrpcServerApplication.java b/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/TrpcServerApplication.java index f1155b4..19b8486 100644 --- a/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/TrpcServerApplication.java +++ b/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/controller/HelloController.java b/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/controller/HelloController.java index 92dd209..b867b97 100644 --- a/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/controller/HelloController.java +++ b/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/service/HelloServiceImpl.java b/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/service/HelloServiceImpl.java index de2edd9..df5e7cb 100644 --- a/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/service/HelloServiceImpl.java +++ b/trpc-selector/trpc-selector-zookeeper/src/main/java/com/tencent/trpc/demo/selector/zookeeper/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/TrpcServerApplication.java b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/TrpcServerApplication.java index c6ec2cc..6d7e972 100644 --- a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/TrpcServerApplication.java +++ b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/controller/HelloController.java b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/controller/HelloController.java index 459a221..378f18e 100644 --- a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/controller/HelloController.java +++ b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/CustomizeException.java b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/CustomizeException.java index 5be7601..f53b3f4 100644 --- a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/CustomizeException.java +++ b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/CustomizeException.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/ExceptionHandlerConfiguration.java b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/ExceptionHandlerConfiguration.java index aaf8109..ea04dde 100644 --- a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/ExceptionHandlerConfiguration.java +++ b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/handler/ExceptionHandlerConfiguration.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceFuncImpl.java b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceFuncImpl.java index 3205838..9c4511c 100644 --- a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceFuncImpl.java +++ b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceFuncImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceImpl.java b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceImpl.java index 984b936..f6092f3 100644 --- a/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceImpl.java +++ b/trpc-spring/trpc-spring-exception/src/main/java/com/tencent/trpc/demo/exception/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/TrpcServerApplication.java b/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/TrpcServerApplication.java index faba597..da820bf 100644 --- a/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/TrpcServerApplication.java +++ b/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/controller/HelloController.java b/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/controller/HelloController.java index 875143b..9f20f03 100644 --- a/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/controller/HelloController.java +++ b/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/service/HelloServiceImpl.java b/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/service/HelloServiceImpl.java index c18378d..8644c31 100644 --- a/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/service/HelloServiceImpl.java +++ b/trpc-spring/trpc-spring-mvchttp/src/main/java/com/tencent/trpc/demo/http/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/TrpcServerApplication.java b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/TrpcServerApplication.java index 9a75cdc..4250842 100644 --- a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/TrpcServerApplication.java +++ b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/TrpcServerApplication.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, @@ -11,6 +11,10 @@ package com.tencent.trpc.demo.polaris; +import com.tencent.trpc.core.rpc.RpcClientContext; +import com.tencent.trpc.core.rpc.TRpcProxy; +import com.tencent.trpc.demo.api.Hello.HelloReq; +import com.tencent.trpc.demo.api.HelloAPI; import com.tencent.trpc.spring.boot.starters.annotation.EnableTRpc; import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -28,5 +32,10 @@ public static void main(String[] args) { .sources(TrpcServerApplication.class) .web(WebApplicationType.SERVLET) .run(args); + + HelloAPI proxy = TRpcProxy.getProxy("testPolarisTRPC", HelloAPI.class); + String ret = proxy.sayHello(new RpcClientContext(), + HelloReq.newBuilder().setMsg("hello").build()).getMsg(); + System.out.println(ret); } } diff --git a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/controller/HelloController.java b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/controller/HelloController.java index 224c800..73c3e58 100644 --- a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/controller/HelloController.java +++ b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/controller/HelloController.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/AsyncServiceImpl.java b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/AsyncServiceImpl.java index 78249c9..a61f43d 100644 --- a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/AsyncServiceImpl.java +++ b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/AsyncServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/HelloServiceImpl.java b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/HelloServiceImpl.java index 8637ea8..6ebf1c7 100644 --- a/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/HelloServiceImpl.java +++ b/trpc-spring/trpc-spring-server/src/main/java/com/tencent/trpc/demo/polaris/service/HelloServiceImpl.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-spring/trpc-spring-server/src/main/resources/META-INF/trpc/trpc_java.yaml b/trpc-spring/trpc-spring-server/src/main/resources/META-INF/trpc/trpc_java.yaml index 0469792..8bf192a 100644 --- a/trpc-spring/trpc-spring-server/src/main/resources/META-INF/trpc/trpc_java.yaml +++ b/trpc-spring/trpc-spring-server/src/main/resources/META-INF/trpc/trpc_java.yaml @@ -25,6 +25,7 @@ server: protocol: trpc transporter: netty serialization: pb + request_timeout: 100000000 # trpc-cli -verbose -func /trpc.test.demo.Hello/SayHello -target ip://127.0.0.1:8085 -protocol trpc -body '{"msg":"hello,trpc-cli"}' - name: trpc.trpc_java.trpc_java_demo.Async impls: @@ -48,4 +49,5 @@ client: naming_url: ip://127.0.0.1:8085 #naming配置,直连 ip://ip:port, 名字服务: polaris://trpc.TestApp.TestServer.Greeter?key=value&key=value l5://mid:cmid cmlb://id protocol: trpc serialization: pb - idle_timeout: 86400000 # 单位为毫秒, 默认为 180000 \ No newline at end of file + idle_timeout: 86400000 # 单位为毫秒, 默认为 180000 + request_timeout: 100000000 \ No newline at end of file diff --git a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/Hello.java b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/Hello.java index 877ede5..5c14a59 100644 --- a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/Hello.java +++ b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/Hello.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, @@ -274,12 +274,12 @@ public int getCost() { @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) { - return true; - } - if (isInitialized == 0) { - return false; - } + if (isInitialized == 1) { + return true; + } + if (isInitialized == 0) { + return false; + } memoizedIsInitialized = 1; return true; @@ -303,9 +303,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) @Override public int getSerializedSize() { int size = memoizedSize; - if (size != -1) { - return size; - } + if (size != -1) { + return size; + } size = 0; if (!getMsgBytes().isEmpty()) { @@ -333,21 +333,21 @@ public boolean equals(final Object obj) { } HelloReq other = (HelloReq) obj; - if (!getMsg() - .equals(other.getMsg())) { - return false; - } - if (!getId() - .equals(other.getId())) { - return false; - } - if (getCost() - != other.getCost()) { - return false; - } - if (!unknownFields.equals(other.unknownFields)) { - return false; - } + if (!getMsg() + .equals(other.getMsg())) { + return false; + } + if (!getId() + .equals(other.getId())) { + return false; + } + if (getCost() + != other.getCost()) { + return false; + } + if (!unknownFields.equals(other.unknownFields)) { + return false; + } return true; } @@ -605,9 +605,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(HelloReq other) { - if (other == HelloReq.getDefaultInstance()) { - return this; - } + if (other == HelloReq.getDefaultInstance()) { + return this; + } if (!other.getMsg().isEmpty()) { msg_ = other.msg_; onChanged(); @@ -1130,12 +1130,12 @@ public String getId() { @Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) { - return true; - } - if (isInitialized == 0) { - return false; - } + if (isInitialized == 1) { + return true; + } + if (isInitialized == 0) { + return false; + } memoizedIsInitialized = 1; return true; @@ -1156,9 +1156,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) @Override public int getSerializedSize() { int size = memoizedSize; - if (size != -1) { - return size; - } + if (size != -1) { + return size; + } size = 0; if (!getMsgBytes().isEmpty()) { @@ -1182,17 +1182,17 @@ public boolean equals(final Object obj) { } HelloRsp other = (HelloRsp) obj; - if (!getMsg() - .equals(other.getMsg())) { - return false; - } - if (!getId() - .equals(other.getId())) { - return false; - } - if (!unknownFields.equals(other.unknownFields)) { - return false; - } + if (!getMsg() + .equals(other.getMsg())) { + return false; + } + if (!getId() + .equals(other.getId())) { + return false; + } + if (!unknownFields.equals(other.unknownFields)) { + return false; + } return true; } @@ -1445,9 +1445,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(HelloRsp other) { - if (other == HelloRsp.getDefaultInstance()) { - return this; - } + if (other == HelloRsp.getDefaultInstance()) { + return this; + } if (!other.getMsg().isEmpty()) { msg_ = other.msg_; onChanged(); diff --git a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAPI.java b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAPI.java index c8ed05c..da4ce5c 100644 --- a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAPI.java +++ b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAPI.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAsyncAPI.java b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAsyncAPI.java index da90ba1..4db6023 100644 --- a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAsyncAPI.java +++ b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloAsyncAPI.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAPI.java b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAPI.java index 780d381..b035bf3 100644 --- a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAPI.java +++ b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAPI.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent, diff --git a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAsyncAPI.java b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAsyncAPI.java index b44d58b..d7ee012 100644 --- a/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAsyncAPI.java +++ b/trpc-stub/src/main/java/com/tencent/trpc/demo/api/HelloFbpAsyncAPI.java @@ -1,7 +1,7 @@ /* * Tencent is pleased to support the open source community by making tRPC available. * - * Copyright (C) 2023 THL A29 Limited, a Tencent company. + * Copyright (C) 2023 Tencent. * All rights reserved. * * If you have downloaded a copy of the tRPC source code from Tencent,