Skip to content

Commit 7c56a6a

Browse files
bugfix: fix the class name configuration error in trpc-spring-client-demo (trpc-group#22)
1 parent 0a205b1 commit 7c56a6a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

trpc-demo/trpc-spring-demo/trpc-spring-client-demo/src/main/resources/application.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ trpc:
88
service:
99
- name: trpc.TestApp.TestServer.Greeter1 # Service name
1010
naming_url: ip://127.0.0.1:12321 # Router address
11-
interface: com.tencent.trpc.demo.proto.GreeterserviceAsyncAPI # Service interface
11+
interface: com.tencent.trpc.demo.proto.GreeterServiceAsyncAPI # Service interface
1212
- name: trpc.TestApp.TestServer.Greeter2 # Service name
1313
naming_url: ip://127.0.0.1:12322 # Router address
14-
interface: com.tencent.trpc.demo.proto.Greeterservice2AsyncAPI # Service interface
14+
interface: com.tencent.trpc.demo.proto.GreeterService2AsyncAPI # Service interface
1515
protocol: http # Protocol type, default is trpc
1616
basePath: /rest # The base path of the client service url address

trpc-demo/trpc-spring-demo/trpc-spring-server-demo/src/main/java/com/tencent/trpc/spring/demo/server/impl/GreeterServiceImpl.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Tencent is pleased to support the open source community by making tRPC available.
33
*
4-
* Copyright (C) 2023 THL A29 Limited, a Tencent company.
4+
* Copyright (C) 2023 THL A29 Limited, a Tencent company.
55
* All rights reserved.
66
*
77
* If you have downloaded a copy of the tRPC source code from Tencent,
@@ -26,11 +26,11 @@ public class GreeterServiceImpl implements GreeterServiceAPI {
2626

2727
@Override
2828
public HelloRequestProtocol.HelloResponse sayHello(RpcContext context, HelloRequestProtocol.HelloRequest request) {
29-
logger.error(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
29+
logger.info(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
3030
String message = request.getMessage();
3131
HelloRequestProtocol.HelloResponse.Builder rspBuilder = HelloRequestProtocol.HelloResponse.newBuilder();
3232
rspBuilder.setMessage("Hello " + message);
33-
logger.error(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
33+
logger.info(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
3434
return rspBuilder.build();
3535
}
3636

trpc-demo/trpc-spring-demo/trpc-spring-server-demo/src/main/java/com/tencent/trpc/spring/demo/server/impl/GreeterServiceImpl2.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Tencent is pleased to support the open source community by making tRPC available.
33
*
4-
* Copyright (C) 2023 THL A29 Limited, a Tencent company.
4+
* Copyright (C) 2023 THL A29 Limited, a Tencent company.
55
* All rights reserved.
66
*
77
* If you have downloaded a copy of the tRPC source code from Tencent,
@@ -26,11 +26,11 @@ public class GreeterServiceImpl2 implements GreeterService2API {
2626

2727
@Override
2828
public HelloRequestProtocol.HelloResponse sayHi(RpcContext context, HelloRequestProtocol.HelloRequest request) {
29-
logger.error(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
29+
logger.info(">>>[server]receive msg:{}", TextFormat.shortDebugString(request));
3030
String message = request.getMessage();
3131
HelloRequestProtocol.HelloResponse.Builder rspBuilder = HelloRequestProtocol.HelloResponse.newBuilder();
3232
rspBuilder.setMessage("Hi " + message);
33-
logger.error(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
33+
logger.info(">>>[server]return msg:{}", TextFormat.shortDebugString(rspBuilder));
3434
return rspBuilder.build();
3535
}
3636

0 commit comments

Comments
 (0)