Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: fix the class name configuration error in trpc-spring-client-… #22

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ trpc:
service:
- name: trpc.TestApp.TestServer.Greeter1 # Service name
naming_url: ip://127.0.0.1:12321 # Router address
interface: com.tencent.trpc.demo.proto.GreeterserviceAsyncAPI # Service interface
interface: com.tencent.trpc.demo.proto.GreeterServiceAsyncAPI # Service interface
- name: trpc.TestApp.TestServer.Greeter2 # Service name
naming_url: ip://127.0.0.1:12322 # Router address
interface: com.tencent.trpc.demo.proto.Greeterservice2AsyncAPI # Service interface
interface: com.tencent.trpc.demo.proto.GreeterService2AsyncAPI # Service interface
protocol: http # Protocol type, default is trpc
basePath: /rest # The base path of the client service url address
Original file line number Diff line number Diff line change
@@ -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 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* If you have downloaded a copy of the tRPC source code from Tencent,
Expand All @@ -26,11 +26,11 @@ public class GreeterServiceImpl implements GreeterServiceAPI {

@Override
public HelloRequestProtocol.HelloResponse sayHello(RpcContext context, HelloRequestProtocol.HelloRequest request) {
logger.error(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
logger.info(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
String message = request.getMessage();
HelloRequestProtocol.HelloResponse.Builder rspBuilder = HelloRequestProtocol.HelloResponse.newBuilder();
rspBuilder.setMessage("Hello " + message);
logger.error(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
logger.info(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
return rspBuilder.build();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* If you have downloaded a copy of the tRPC source code from Tencent,
Expand All @@ -26,11 +26,11 @@ public class GreeterServiceImpl2 implements GreeterService2API {

@Override
public HelloRequestProtocol.HelloResponse sayHi(RpcContext context, HelloRequestProtocol.HelloRequest request) {
logger.error(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
logger.info(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
String message = request.getMessage();
HelloRequestProtocol.HelloResponse.Builder rspBuilder = HelloRequestProtocol.HelloResponse.newBuilder();
rspBuilder.setMessage("Hi " + message);
logger.error(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
logger.info(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
return rspBuilder.build();
}

Expand Down
Loading