diff --git a/.gitignore b/.gitignore index d97201e..9c61097 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,28 @@ -*idea/ -*ignore/ +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar +*/bin/tpid +agent.log* +logs/** +log/** +*.jar +*.pyc +*.log +*/.settings +/.idea/ +.idea/workspace.xml +*.iml +.project +.history +.vscode +.classpath +.factorypath +org.eclipse* diff --git "a/developer/back-end/wen20200323/Java\345\274\200\345\217\221\347\254\254\344\270\211\346\234\237\344\275\234\344\270\232.md" "b/developer/back-end/wen20200323/Java\345\274\200\345\217\221\347\254\254\344\270\211\346\234\237\344\275\234\344\270\232.md" index 7ee44e0..3f61f25 100644 --- "a/developer/back-end/wen20200323/Java\345\274\200\345\217\221\347\254\254\344\270\211\346\234\237\344\275\234\344\270\232.md" +++ "b/developer/back-end/wen20200323/Java\345\274\200\345\217\221\347\254\254\344\270\211\346\234\237\344\275\234\344\270\232.md" @@ -1,9 +1,8 @@ -# Java开发第三期作业 +# Java开发第四期作业 ## 目的 - 学会使用restful的风格开发接口 - -- 了解RPC的基本概念及思想,熟悉gRPC的开发流程 +- 学会使用postman ## 内容 @@ -11,9 +10,3 @@ - 名词,尽量不出现动词 - 小写,以短横线‘-’连接 - get/post/put/delete方法的使用 - -### 完成一个gRPC服务器和客户端的搭建,熟悉proto文件格式 - -- Web -- Client -- Proto \ No newline at end of file diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/client/MyGrpcClient.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/client/MyGrpcClient.java new file mode 100644 index 0000000..b986a23 --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/client/MyGrpcClient.java @@ -0,0 +1,51 @@ +package com.changw98.grpcdemo.client; + +import com.changw98.grpcdemo.generate.MyRequest; +import com.changw98.grpcdemo.generate.MyResponse; +import com.changw98.grpcdemo.generate.MyServiceGrpc; +import io.grpc.ManagedChannel; +import io.grpc.ManagedChannelBuilder; + +import java.util.concurrent.TimeUnit; + + +/** + * @Author: ChengWen + * @Date: 2020/3/25 + * Time: 20:46 + * Description: + */ +public class MyGrpcClient { + + private final ManagedChannel channel; + private final MyServiceGrpc.MyServiceBlockingStub blockingStub; + + + public MyGrpcClient(String host,int port){ + channel=ManagedChannelBuilder.forAddress(host,port) + .usePlaintext(true) + .build(); + blockingStub=MyServiceGrpc.newBlockingStub(channel); + } + + public void shutdown() throws InterruptedException + { + channel.shutdown().awaitTermination(5, TimeUnit.SECONDS); + } + + public void greet(String name) + { + MyRequest myRequest=MyRequest.newBuilder().setName(name).build(); + MyResponse myResponse=blockingStub.sayHello(myRequest); + System.out.println(myResponse.getMessage()); + } + + public static void main(String[] args)throws InterruptedException { + MyGrpcClient myGrpcClient=new MyGrpcClient("127.0.0.1",5001); + System.out.println("-------------------客户端开始访问请求-------------------"); + for (int i = 0; i < 100; i++) { + myGrpcClient.greet("你若想生存,绝处也能缝生: " + i); + } + } + +} diff --git a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/Account.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyRequest.java similarity index 56% rename from developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/Account.java rename to developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyRequest.java index 15d5ab4..ecdceb2 100644 --- a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/Account.java +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyRequest.java @@ -1,23 +1,25 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: entity/req_res.proto +// source: service.proto -package com.reuben.grpc.entity; +package com.changw98.grpcdemo.generate; /** - * Protobuf type {@code com.reuben.grpc.entity.Account} + *
+ *请求
+ * 
+ * + * Protobuf type {@code com.changw98.grpcdemo.MyRequest} */ -public final class Account extends +public final class MyRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.reuben.grpc.entity.Account) - AccountOrBuilder { - // Use Account.newBuilder() to construct. - private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // @@protoc_insertion_point(message_implements:com.changw98.grpcdemo.MyRequest) + MyRequestOrBuilder { + // Use MyRequest.newBuilder() to construct. + private MyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Account() { + private MyRequest() { name_ = ""; - sex_ = ""; - age_ = 0; } @java.lang.Override @@ -25,7 +27,7 @@ private Account() { getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private Account( + private MyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -51,17 +53,6 @@ private Account( name_ = s; break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - sex_ = s; - break; - } - case 24: { - - age_ = input.readInt32(); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -75,20 +66,20 @@ private Account( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_Account_descriptor; + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_Account_fieldAccessorTable + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.reuben.grpc.entity.Account.class, com.reuben.grpc.entity.Account.Builder.class); + com.changw98.grpcdemo.generate.MyRequest.class, com.changw98.grpcdemo.generate.MyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * string name = 1; + * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -103,7 +94,7 @@ public java.lang.String getName() { } } /** - * string name = 1; + * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -119,49 +110,6 @@ public java.lang.String getName() { } } - public static final int SEX_FIELD_NUMBER = 2; - private volatile java.lang.Object sex_; - /** - * string sex = 2; - */ - public java.lang.String getSex() { - java.lang.Object ref = sex_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sex_ = s; - return s; - } - } - /** - * string sex = 2; - */ - public com.google.protobuf.ByteString - getSexBytes() { - java.lang.Object ref = sex_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AGE_FIELD_NUMBER = 3; - private int age_; - /** - * int32 age = 3; - */ - public int getAge() { - return age_; - } - private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,12 +125,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getSexBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sex_); - } - if (age_ != 0) { - output.writeInt32(3, age_); - } } public int getSerializedSize() { @@ -193,13 +135,6 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getSexBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sex_); - } - if (age_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, age_); - } memoizedSize = size; return size; } @@ -210,18 +145,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.reuben.grpc.entity.Account)) { + if (!(obj instanceof com.changw98.grpcdemo.generate.MyRequest)) { return super.equals(obj); } - com.reuben.grpc.entity.Account other = (com.reuben.grpc.entity.Account) obj; + com.changw98.grpcdemo.generate.MyRequest other = (com.changw98.grpcdemo.generate.MyRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); - result = result && getSex() - .equals(other.getSex()); - result = result && (getAge() - == other.getAge()); return result; } @@ -231,81 +162,66 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); + hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + SEX_FIELD_NUMBER; - hash = (53 * hash) + getSex().hashCode(); - hash = (37 * hash) + AGE_FIELD_NUMBER; - hash = (53 * hash) + getAge(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.reuben.grpc.entity.Account parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.reuben.grpc.entity.Account parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.reuben.grpc.entity.Account parseFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.Account parseFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.Account parseFrom(byte[] data) + public static com.changw98.grpcdemo.generate.MyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.Account parseFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.Account parseFrom(java.io.InputStream input) + public static com.changw98.grpcdemo.generate.MyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.Account parseFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.reuben.grpc.entity.Account parseDelimitedFrom(java.io.InputStream input) + public static com.changw98.grpcdemo.generate.MyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.Account parseDelimitedFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.reuben.grpc.entity.Account parseFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.Account parseFrom( + public static com.changw98.grpcdemo.generate.MyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -317,7 +233,7 @@ public static com.reuben.grpc.entity.Account parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.reuben.grpc.entity.Account prototype) { + public static Builder newBuilder(com.changw98.grpcdemo.generate.MyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -332,25 +248,29 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code com.reuben.grpc.entity.Account} + *
+   *请求
+   * 
+ * + * Protobuf type {@code com.changw98.grpcdemo.MyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.reuben.grpc.entity.Account) - com.reuben.grpc.entity.AccountOrBuilder { + // @@protoc_insertion_point(builder_implements:com.changw98.grpcdemo.MyRequest) + com.changw98.grpcdemo.generate.MyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_Account_descriptor; + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_Account_fieldAccessorTable + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.reuben.grpc.entity.Account.class, com.reuben.grpc.entity.Account.Builder.class); + com.changw98.grpcdemo.generate.MyRequest.class, com.changw98.grpcdemo.generate.MyRequest.Builder.class); } - // Construct using com.reuben.grpc.entity.Account.newBuilder() + // Construct using com.changw98.grpcdemo.generate.MyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -369,35 +289,29 @@ public Builder clear() { super.clear(); name_ = ""; - sex_ = ""; - - age_ = 0; - return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_Account_descriptor; + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyRequest_descriptor; } - public com.reuben.grpc.entity.Account getDefaultInstanceForType() { - return com.reuben.grpc.entity.Account.getDefaultInstance(); + public com.changw98.grpcdemo.generate.MyRequest getDefaultInstanceForType() { + return com.changw98.grpcdemo.generate.MyRequest.getDefaultInstance(); } - public com.reuben.grpc.entity.Account build() { - com.reuben.grpc.entity.Account result = buildPartial(); + public com.changw98.grpcdemo.generate.MyRequest build() { + com.changw98.grpcdemo.generate.MyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.reuben.grpc.entity.Account buildPartial() { - com.reuben.grpc.entity.Account result = new com.reuben.grpc.entity.Account(this); + public com.changw98.grpcdemo.generate.MyRequest buildPartial() { + com.changw98.grpcdemo.generate.MyRequest result = new com.changw98.grpcdemo.generate.MyRequest(this); result.name_ = name_; - result.sex_ = sex_; - result.age_ = age_; onBuilt(); return result; } @@ -429,27 +343,20 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.reuben.grpc.entity.Account) { - return mergeFrom((com.reuben.grpc.entity.Account)other); + if (other instanceof com.changw98.grpcdemo.generate.MyRequest) { + return mergeFrom((com.changw98.grpcdemo.generate.MyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.reuben.grpc.entity.Account other) { - if (other == com.reuben.grpc.entity.Account.getDefaultInstance()) return this; + public Builder mergeFrom(com.changw98.grpcdemo.generate.MyRequest other) { + if (other == com.changw98.grpcdemo.generate.MyRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - if (!other.getSex().isEmpty()) { - sex_ = other.sex_; - onChanged(); - } - if (other.getAge() != 0) { - setAge(other.getAge()); - } onChanged(); return this; } @@ -462,11 +369,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.reuben.grpc.entity.Account parsedMessage = null; + com.changw98.grpcdemo.generate.MyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.reuben.grpc.entity.Account) e.getUnfinishedMessage(); + parsedMessage = (com.changw98.grpcdemo.generate.MyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -478,7 +385,7 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * string name = 1; + * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -493,7 +400,7 @@ public java.lang.String getName() { } } /** - * string name = 1; + * optional string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { @@ -509,7 +416,7 @@ public java.lang.String getName() { } } /** - * string name = 1; + * optional string name = 1; */ public Builder setName( java.lang.String value) { @@ -522,7 +429,7 @@ public Builder setName( return this; } /** - * string name = 1; + * optional string name = 1; */ public Builder clearName() { @@ -531,7 +438,7 @@ public Builder clearName() { return this; } /** - * string name = 1; + * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -544,101 +451,6 @@ public Builder setNameBytes( onChanged(); return this; } - - private java.lang.Object sex_ = ""; - /** - * string sex = 2; - */ - public java.lang.String getSex() { - java.lang.Object ref = sex_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sex_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string sex = 2; - */ - public com.google.protobuf.ByteString - getSexBytes() { - java.lang.Object ref = sex_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sex_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string sex = 2; - */ - public Builder setSex( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - sex_ = value; - onChanged(); - return this; - } - /** - * string sex = 2; - */ - public Builder clearSex() { - - sex_ = getDefaultInstance().getSex(); - onChanged(); - return this; - } - /** - * string sex = 2; - */ - public Builder setSexBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - sex_ = value; - onChanged(); - return this; - } - - private int age_ ; - /** - * int32 age = 3; - */ - public int getAge() { - return age_; - } - /** - * int32 age = 3; - */ - public Builder setAge(int value) { - - age_ = value; - onChanged(); - return this; - } - /** - * int32 age = 3; - */ - public Builder clearAge() { - - age_ = 0; - onChanged(); - return this; - } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; @@ -650,39 +462,39 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:com.reuben.grpc.entity.Account) + // @@protoc_insertion_point(builder_scope:com.changw98.grpcdemo.MyRequest) } - // @@protoc_insertion_point(class_scope:com.reuben.grpc.entity.Account) - private static final com.reuben.grpc.entity.Account DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:com.changw98.grpcdemo.MyRequest) + private static final com.changw98.grpcdemo.generate.MyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.reuben.grpc.entity.Account(); + DEFAULT_INSTANCE = new com.changw98.grpcdemo.generate.MyRequest(); } - public static com.reuben.grpc.entity.Account getDefaultInstance() { + public static com.changw98.grpcdemo.generate.MyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public Account parsePartialFrom( + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Account(input, extensionRegistry); + return new MyRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.reuben.grpc.entity.Account getDefaultInstanceForType() { + public com.changw98.grpcdemo.generate.MyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyRequestOrBuilder.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyRequestOrBuilder.java new file mode 100644 index 0000000..025b5c2 --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyRequestOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service.proto + +package com.changw98.grpcdemo.generate; + +public interface MyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.changw98.grpcdemo.MyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string name = 1; + */ + java.lang.String getName(); + /** + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloReply.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyResponse.java similarity index 70% rename from developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloReply.java rename to developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyResponse.java index 0cf9ccd..b98c1c4 100644 --- a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloReply.java +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyResponse.java @@ -1,24 +1,24 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: entity/req_res.proto +// source: service.proto -package com.reuben.grpc.entity; +package com.changw98.grpcdemo.generate; /** *
- *响应参数
+ *相应
  * 
* - * Protobuf type {@code com.reuben.grpc.entity.HelloReply} + * Protobuf type {@code com.changw98.grpcdemo.MyResponse} */ -public final class HelloReply extends +public final class MyResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.reuben.grpc.entity.HelloReply) - HelloReplyOrBuilder { - // Use HelloReply.newBuilder() to construct. - private HelloReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // @@protoc_insertion_point(message_implements:com.changw98.grpcdemo.MyResponse) + MyResponseOrBuilder { + // Use MyResponse.newBuilder() to construct. + private MyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HelloReply() { + private MyResponse() { message_ = ""; } @@ -27,7 +27,7 @@ private HelloReply() { getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - private HelloReply( + private MyResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -66,20 +66,20 @@ private HelloReply( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloReply_descriptor; + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloReply_fieldAccessorTable + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.reuben.grpc.entity.HelloReply.class, com.reuben.grpc.entity.HelloReply.Builder.class); + com.changw98.grpcdemo.generate.MyResponse.class, com.changw98.grpcdemo.generate.MyResponse.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** - * string message = 1; + * optional string message = 1; */ public java.lang.String getMessage() { java.lang.Object ref = message_; @@ -94,7 +94,7 @@ public java.lang.String getMessage() { } } /** - * string message = 1; + * optional string message = 1; */ public com.google.protobuf.ByteString getMessageBytes() { @@ -145,10 +145,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.reuben.grpc.entity.HelloReply)) { + if (!(obj instanceof com.changw98.grpcdemo.generate.MyResponse)) { return super.equals(obj); } - com.reuben.grpc.entity.HelloReply other = (com.reuben.grpc.entity.HelloReply) obj; + com.changw98.grpcdemo.generate.MyResponse other = (com.changw98.grpcdemo.generate.MyResponse) obj; boolean result = true; result = result && getMessage() @@ -162,7 +162,7 @@ public int hashCode() { return memoizedHashCode; } int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); + hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -170,69 +170,58 @@ public int hashCode() { return hash; } - public static com.reuben.grpc.entity.HelloReply parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.reuben.grpc.entity.HelloReply parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.reuben.grpc.entity.HelloReply parseFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.HelloReply parseFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.HelloReply parseFrom(byte[] data) + public static com.changw98.grpcdemo.generate.MyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.HelloReply parseFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.HelloReply parseFrom(java.io.InputStream input) + public static com.changw98.grpcdemo.generate.MyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.HelloReply parseFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.reuben.grpc.entity.HelloReply parseDelimitedFrom(java.io.InputStream input) + public static com.changw98.grpcdemo.generate.MyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.HelloReply parseDelimitedFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.reuben.grpc.entity.HelloReply parseFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.HelloReply parseFrom( + public static com.changw98.grpcdemo.generate.MyResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -244,7 +233,7 @@ public static com.reuben.grpc.entity.HelloReply parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.reuben.grpc.entity.HelloReply prototype) { + public static Builder newBuilder(com.changw98.grpcdemo.generate.MyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { @@ -260,28 +249,28 @@ protected Builder newBuilderForType( } /** *
-   *响应参数
+   *相应
    * 
* - * Protobuf type {@code com.reuben.grpc.entity.HelloReply} + * Protobuf type {@code com.changw98.grpcdemo.MyResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.reuben.grpc.entity.HelloReply) - com.reuben.grpc.entity.HelloReplyOrBuilder { + // @@protoc_insertion_point(builder_implements:com.changw98.grpcdemo.MyResponse) + com.changw98.grpcdemo.generate.MyResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloReply_descriptor; + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloReply_fieldAccessorTable + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.reuben.grpc.entity.HelloReply.class, com.reuben.grpc.entity.HelloReply.Builder.class); + com.changw98.grpcdemo.generate.MyResponse.class, com.changw98.grpcdemo.generate.MyResponse.Builder.class); } - // Construct using com.reuben.grpc.entity.HelloReply.newBuilder() + // Construct using com.changw98.grpcdemo.generate.MyResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -305,23 +294,23 @@ public Builder clear() { public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloReply_descriptor; + return com.changw98.grpcdemo.generate.Proto.internal_static_com_changw98_grpcdemo_MyResponse_descriptor; } - public com.reuben.grpc.entity.HelloReply getDefaultInstanceForType() { - return com.reuben.grpc.entity.HelloReply.getDefaultInstance(); + public com.changw98.grpcdemo.generate.MyResponse getDefaultInstanceForType() { + return com.changw98.grpcdemo.generate.MyResponse.getDefaultInstance(); } - public com.reuben.grpc.entity.HelloReply build() { - com.reuben.grpc.entity.HelloReply result = buildPartial(); + public com.changw98.grpcdemo.generate.MyResponse build() { + com.changw98.grpcdemo.generate.MyResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.reuben.grpc.entity.HelloReply buildPartial() { - com.reuben.grpc.entity.HelloReply result = new com.reuben.grpc.entity.HelloReply(this); + public com.changw98.grpcdemo.generate.MyResponse buildPartial() { + com.changw98.grpcdemo.generate.MyResponse result = new com.changw98.grpcdemo.generate.MyResponse(this); result.message_ = message_; onBuilt(); return result; @@ -354,16 +343,16 @@ public Builder addRepeatedField( return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.reuben.grpc.entity.HelloReply) { - return mergeFrom((com.reuben.grpc.entity.HelloReply)other); + if (other instanceof com.changw98.grpcdemo.generate.MyResponse) { + return mergeFrom((com.changw98.grpcdemo.generate.MyResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.reuben.grpc.entity.HelloReply other) { - if (other == com.reuben.grpc.entity.HelloReply.getDefaultInstance()) return this; + public Builder mergeFrom(com.changw98.grpcdemo.generate.MyResponse other) { + if (other == com.changw98.grpcdemo.generate.MyResponse.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); @@ -380,11 +369,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.reuben.grpc.entity.HelloReply parsedMessage = null; + com.changw98.grpcdemo.generate.MyResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.reuben.grpc.entity.HelloReply) e.getUnfinishedMessage(); + parsedMessage = (com.changw98.grpcdemo.generate.MyResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -396,7 +385,7 @@ public Builder mergeFrom( private java.lang.Object message_ = ""; /** - * string message = 1; + * optional string message = 1; */ public java.lang.String getMessage() { java.lang.Object ref = message_; @@ -411,7 +400,7 @@ public java.lang.String getMessage() { } } /** - * string message = 1; + * optional string message = 1; */ public com.google.protobuf.ByteString getMessageBytes() { @@ -427,7 +416,7 @@ public java.lang.String getMessage() { } } /** - * string message = 1; + * optional string message = 1; */ public Builder setMessage( java.lang.String value) { @@ -440,7 +429,7 @@ public Builder setMessage( return this; } /** - * string message = 1; + * optional string message = 1; */ public Builder clearMessage() { @@ -449,7 +438,7 @@ public Builder clearMessage() { return this; } /** - * string message = 1; + * optional string message = 1; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { @@ -473,39 +462,39 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:com.reuben.grpc.entity.HelloReply) + // @@protoc_insertion_point(builder_scope:com.changw98.grpcdemo.MyResponse) } - // @@protoc_insertion_point(class_scope:com.reuben.grpc.entity.HelloReply) - private static final com.reuben.grpc.entity.HelloReply DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:com.changw98.grpcdemo.MyResponse) + private static final com.changw98.grpcdemo.generate.MyResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.reuben.grpc.entity.HelloReply(); + DEFAULT_INSTANCE = new com.changw98.grpcdemo.generate.MyResponse(); } - public static com.reuben.grpc.entity.HelloReply getDefaultInstance() { + public static com.changw98.grpcdemo.generate.MyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - public HelloReply parsePartialFrom( + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + public MyResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HelloReply(input, extensionRegistry); + return new MyResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.reuben.grpc.entity.HelloReply getDefaultInstanceForType() { + public com.changw98.grpcdemo.generate.MyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyResponseOrBuilder.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyResponseOrBuilder.java new file mode 100644 index 0000000..b1729a4 --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service.proto + +package com.changw98.grpcdemo.generate; + +public interface MyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.changw98.grpcdemo.MyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string message = 1; + */ + java.lang.String getMessage(); + /** + * optional string message = 1; + */ + com.google.protobuf.ByteString + getMessageBytes(); +} diff --git a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/grpc-java/com/reuben/grpc/service/GreeterGrpc.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyServiceGrpc.java similarity index 54% rename from developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/grpc-java/com/reuben/grpc/service/GreeterGrpc.java rename to developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyServiceGrpc.java index 128dfd3..49fa762 100644 --- a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/grpc-java/com/reuben/grpc/service/GreeterGrpc.java +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/MyServiceGrpc.java @@ -1,4 +1,4 @@ -package com.reuben.grpc.service; +package com.changw98.grpcdemo.generate; import static io.grpc.stub.ClientCalls.asyncUnaryCall; import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; @@ -16,70 +16,61 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; /** - *
- *定义rpc服务接口
- * 
*/ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.6.1)", - comments = "Source: entity/hello_account.proto") -public final class GreeterGrpc { + value = "by gRPC proto compiler (version 1.2.0)", + comments = "Source: service.proto") +public final class MyServiceGrpc { - private GreeterGrpc() {} + private MyServiceGrpc() {} - public static final String SERVICE_NAME = "com.reuben.grpc.service.Greeter"; + public static final String SERVICE_NAME = "com.changw98.grpcdemo.MyService"; // Static method descriptors that strictly reflect the proto. @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - public static final io.grpc.MethodDescriptor METHOD_SAY_HELLO = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName( - "com.reuben.grpc.service.Greeter", "SayHello")) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.reuben.grpc.entity.HelloRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.reuben.grpc.entity.HelloReply.getDefaultInstance())) - .build(); + public static final io.grpc.MethodDescriptor METHOD_SAY_HELLO = + io.grpc.MethodDescriptor.create( + io.grpc.MethodDescriptor.MethodType.UNARY, + generateFullMethodName( + "com.changw98.grpcdemo.MyService", "SayHello"), + io.grpc.protobuf.ProtoUtils.marshaller(com.changw98.grpcdemo.generate.MyRequest.getDefaultInstance()), + io.grpc.protobuf.ProtoUtils.marshaller(com.changw98.grpcdemo.generate.MyResponse.getDefaultInstance())); /** * Creates a new async stub that supports all call types for the service */ - public static GreeterStub newStub(io.grpc.Channel channel) { - return new GreeterStub(channel); + public static MyServiceStub newStub(io.grpc.Channel channel) { + return new MyServiceStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static GreeterBlockingStub newBlockingStub( + public static MyServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { - return new GreeterBlockingStub(channel); + return new MyServiceBlockingStub(channel); } /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service + * Creates a new ListenableFuture-style stub that supports unary and streaming output calls on the service */ - public static GreeterFutureStub newFutureStub( + public static MyServiceFutureStub newFutureStub( io.grpc.Channel channel) { - return new GreeterFutureStub(channel); + return new MyServiceFutureStub(channel); } /** - *
-   *定义rpc服务接口
-   * 
*/ - public static abstract class GreeterImplBase implements io.grpc.BindableService { + public static abstract class MyServiceImplBase implements io.grpc.BindableService { /** *
-     *服务端接口方法
+     *请求参数 MyRequest 相应参数 MyResponse
      * 
*/ - public void sayHello(com.reuben.grpc.entity.HelloRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void sayHello(com.changw98.grpcdemo.generate.MyRequest request, + io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(METHOD_SAY_HELLO, responseObserver); } @@ -89,106 +80,97 @@ public void sayHello(com.reuben.grpc.entity.HelloRequest request, METHOD_SAY_HELLO, asyncUnaryCall( new MethodHandlers< - com.reuben.grpc.entity.HelloRequest, - com.reuben.grpc.entity.HelloReply>( + com.changw98.grpcdemo.generate.MyRequest, + com.changw98.grpcdemo.generate.MyResponse>( this, METHODID_SAY_HELLO))) .build(); } } /** - *
-   *定义rpc服务接口
-   * 
*/ - public static final class GreeterStub extends io.grpc.stub.AbstractStub { - private GreeterStub(io.grpc.Channel channel) { + public static final class MyServiceStub extends io.grpc.stub.AbstractStub { + private MyServiceStub(io.grpc.Channel channel) { super(channel); } - private GreeterStub(io.grpc.Channel channel, + private MyServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected GreeterStub build(io.grpc.Channel channel, + protected MyServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GreeterStub(channel, callOptions); + return new MyServiceStub(channel, callOptions); } /** *
-     *服务端接口方法
+     *请求参数 MyRequest 相应参数 MyResponse
      * 
*/ - public void sayHello(com.reuben.grpc.entity.HelloRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void sayHello(com.changw98.grpcdemo.generate.MyRequest request, + io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(METHOD_SAY_HELLO, getCallOptions()), request, responseObserver); } } /** - *
-   *定义rpc服务接口
-   * 
*/ - public static final class GreeterBlockingStub extends io.grpc.stub.AbstractStub { - private GreeterBlockingStub(io.grpc.Channel channel) { + public static final class MyServiceBlockingStub extends io.grpc.stub.AbstractStub { + private MyServiceBlockingStub(io.grpc.Channel channel) { super(channel); } - private GreeterBlockingStub(io.grpc.Channel channel, + private MyServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected GreeterBlockingStub build(io.grpc.Channel channel, + protected MyServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GreeterBlockingStub(channel, callOptions); + return new MyServiceBlockingStub(channel, callOptions); } /** *
-     *服务端接口方法
+     *请求参数 MyRequest 相应参数 MyResponse
      * 
*/ - public com.reuben.grpc.entity.HelloReply sayHello(com.reuben.grpc.entity.HelloRequest request) { + public com.changw98.grpcdemo.generate.MyResponse sayHello(com.changw98.grpcdemo.generate.MyRequest request) { return blockingUnaryCall( getChannel(), METHOD_SAY_HELLO, getCallOptions(), request); } } /** - *
-   *定义rpc服务接口
-   * 
*/ - public static final class GreeterFutureStub extends io.grpc.stub.AbstractStub { - private GreeterFutureStub(io.grpc.Channel channel) { + public static final class MyServiceFutureStub extends io.grpc.stub.AbstractStub { + private MyServiceFutureStub(io.grpc.Channel channel) { super(channel); } - private GreeterFutureStub(io.grpc.Channel channel, + private MyServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected GreeterFutureStub build(io.grpc.Channel channel, + protected MyServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GreeterFutureStub(channel, callOptions); + return new MyServiceFutureStub(channel, callOptions); } /** *
-     *服务端接口方法
+     *请求参数 MyRequest 相应参数 MyResponse
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture sayHello( - com.reuben.grpc.entity.HelloRequest request) { + public com.google.common.util.concurrent.ListenableFuture sayHello( + com.changw98.grpcdemo.generate.MyRequest request) { return futureUnaryCall( getChannel().newCall(METHOD_SAY_HELLO, getCallOptions()), request); } @@ -201,10 +183,10 @@ private static final class MethodHandlers implements io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final GreeterImplBase serviceImpl; + private final MyServiceImplBase serviceImpl; private final int methodId; - MethodHandlers(GreeterImplBase serviceImpl, int methodId) { + MethodHandlers(MyServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @@ -214,8 +196,8 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SAY_HELLO: - serviceImpl.sayHello((com.reuben.grpc.entity.HelloRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.sayHello((com.changw98.grpcdemo.generate.MyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -233,10 +215,10 @@ public io.grpc.stub.StreamObserver invoke( } } - private static final class GreeterDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier { + private static final class MyServiceDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier { @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.reuben.grpc.service.ServiceProto.getDescriptor(); + return com.changw98.grpcdemo.generate.Proto.getDescriptor(); } } @@ -245,11 +227,11 @@ public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { - synchronized (GreeterGrpc.class) { + synchronized (MyServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GreeterDescriptorSupplier()) + .setSchemaDescriptor(new MyServiceDescriptorSupplier()) .addMethod(METHOD_SAY_HELLO) .build(); } diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/Proto.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/Proto.java new file mode 100644 index 0000000..fbe3a6d --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/generate/Proto.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service.proto + +package com.changw98.grpcdemo.generate; + +public final class Proto { + private Proto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_com_changw98_grpcdemo_MyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_com_changw98_grpcdemo_MyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_com_changw98_grpcdemo_MyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_com_changw98_grpcdemo_MyResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\rservice.proto\022\025com.changw98.grpcdemo\"\031" + + "\n\tMyRequest\022\014\n\004name\030\001 \001(\t\"\035\n\nMyResponse\022" + + "\017\n\007message\030\001 \001(\t2\\\n\tMyService\022O\n\010SayHell" + + "o\022 .com.changw98.grpcdemo.MyRequest\032!.co" + + "m.changw98.grpcdemo.MyResponseB)\n\036com.ch" + + "angw98.grpcdemo.generateB\005ProtoP\001b\006proto" + + "3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_com_changw98_grpcdemo_MyRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_com_changw98_grpcdemo_MyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_com_changw98_grpcdemo_MyRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_com_changw98_grpcdemo_MyResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_com_changw98_grpcdemo_MyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_com_changw98_grpcdemo_MyResponse_descriptor, + new java.lang.String[] { "Message", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/server/MyGrpcServer.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/server/MyGrpcServer.java new file mode 100644 index 0000000..22b0730 --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/java/com/changw98/grpcdemo/server/MyGrpcServer.java @@ -0,0 +1,73 @@ +package com.changw98.grpcdemo.server; + + +import com.changw98.grpcdemo.generate.MyRequest; +import com.changw98.grpcdemo.generate.MyResponse; +import com.changw98.grpcdemo.generate.MyServiceGrpc; +import io.grpc.BindableService; +import io.grpc.Server; +import io.grpc.ServerBuilder; +import io.grpc.stub.StreamObserver; + +import java.io.IOException; + + +public class MyGrpcServer { + private int port=5001; + private Server server; + + + + + private void start() throws IOException { + server=ServerBuilder.forPort(port) + .addService((BindableService)new MyGrpcImpl()) + .build() + .start(); + System.out.println("------------------- 服务端服务已开启,等待客户端访问 -------------------"); + Runtime.getRuntime().addShutdownHook(new Thread(){ + @Override + public void run(){ + System.out.println("shutting down gRPC server since JVM is shutting down"); + MyGrpcServer.this.stop(); + System.out.println("server shutdown"); + + } + }); + } + private void stop() + { + if (server!=null) + server.shutdown(); + } + + private void blockUntilShutdown()throws InterruptedException{ + if (server!=null) + server.awaitTermination(); + } + + public static void main(String[] args)throws IOException,InterruptedException { + final MyGrpcServer myGrpcServer=new MyGrpcServer(); + //启动服务 + myGrpcServer.start(); + + //服务一直在线,不关闭 + myGrpcServer.blockUntilShutdown(); + + } + + + //定义一个实现服务接口的类 + private class MyGrpcImpl extends MyServiceGrpc.MyServiceImplBase{ + @Override + public void sayHello(MyRequest myRequest, StreamObserver responseObserver){ + //具体其他丰富的业务实现代码 + System.out.println("server"+myRequest.getName()); + MyResponse reply=MyResponse.newBuilder().setMessage(("响应消息:"+myRequest.getName())).build(); + responseObserver.onNext(reply); + responseObserver.onCompleted(); + } + } +} + + diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/proto/service.proto b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/proto/service.proto new file mode 100644 index 0000000..99d983f --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/proto/service.proto @@ -0,0 +1,25 @@ +//指定proto3格式 +syntax = "proto3"; + +//一些生成代码的设置 +option java_multiple_files = true;//以外部类模式生成 +option java_package = "com.changw98.grpcdemo.generate";//所在包名 +option java_outer_classname = "Proto";//最外层类名称 +//option java_generic_services=true;//可以生成rpc接口 +package com.changw98.grpcdemo; + +//声明一个服务 + +service MyService{ + //请求参数 MyRequest 相应参数 MyResponse + rpc SayHello(MyRequest) returns(MyResponse); +} +//请求 +message MyRequest{ + string name=1; +} + +//相应 +message MyResponse{ + string message=1; +} diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/resources/application.properties b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/src/test/java/com/changw98/grpcdemo/GrpcDemoApplicationTests.java b/developer/back-end/wen20200323/chengwen/grpc-demo/src/test/java/com/changw98/grpcdemo/GrpcDemoApplicationTests.java new file mode 100644 index 0000000..49add16 --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/src/test/java/com/changw98/grpcdemo/GrpcDemoApplicationTests.java @@ -0,0 +1,13 @@ +package com.changw98.grpcdemo; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GrpcDemoApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/web/WEB-INF/web.xml b/developer/back-end/wen20200323/chengwen/grpc-demo/web/WEB-INF/web.xml new file mode 100644 index 0000000..d80081d --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/web/WEB-INF/web.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/chengwen/grpc-demo/web/index.jsp b/developer/back-end/wen20200323/chengwen/grpc-demo/web/index.jsp new file mode 100644 index 0000000..e3ebc2d --- /dev/null +++ b/developer/back-end/wen20200323/chengwen/grpc-demo/web/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: Administrator + Date: 2020/3/31 + Time: 23:57 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/.gitignore b/developer/back-end/wen20200323/pancan/Grpc_demo/.gitignore new file mode 100644 index 0000000..a2a3040 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/.gitignore @@ -0,0 +1,31 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/** +!**/src/test/** + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ + +### VS Code ### +.vscode/ diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/MavenWrapperDownloader.java b/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/MavenWrapperDownloader.java new file mode 100644 index 0000000..a45eb6b --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/MavenWrapperDownloader.java @@ -0,0 +1,118 @@ +/* + * Copyright 2007-present the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import java.net.*; +import java.io.*; +import java.nio.channels.*; +import java.util.Properties; + +public class MavenWrapperDownloader { + + private static final String WRAPPER_VERSION = "0.5.6"; + /** + * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. + */ + private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" + + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; + + /** + * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to + * use instead of the default one. + */ + private static final String MAVEN_WRAPPER_PROPERTIES_PATH = + ".mvn/wrapper/maven-wrapper.properties"; + + /** + * Path where the maven-wrapper.jar will be saved to. + */ + private static final String MAVEN_WRAPPER_JAR_PATH = + ".mvn/wrapper/maven-wrapper.jar"; + + /** + * Name of the property which should be used to override the default download url for the wrapper. + */ + private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; + + public static void main(String args[]) { + System.out.println("- Downloader started"); + File baseDirectory = new File(args[0]); + System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); + + // If the maven-wrapper.properties exists, read it and check if it contains a custom + // wrapperUrl parameter. + File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); + String url = DEFAULT_DOWNLOAD_URL; + if (mavenWrapperPropertyFile.exists()) { + FileInputStream mavenWrapperPropertyFileInputStream = null; + try { + mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); + Properties mavenWrapperProperties = new Properties(); + mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); + url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); + } catch (IOException e) { + System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); + } finally { + try { + if (mavenWrapperPropertyFileInputStream != null) { + mavenWrapperPropertyFileInputStream.close(); + } + } catch (IOException e) { + // Ignore ... + } + } + } + System.out.println("- Downloading from: " + url); + + File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); + if (!outputFile.getParentFile().exists()) { + if (!outputFile.getParentFile().mkdirs()) { + System.out.println( + "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); + } + } + System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); + try { + downloadFileFromURL(url, outputFile); + System.out.println("Done"); + System.exit(0); + } catch (Throwable e) { + System.out.println("- Error downloading"); + e.printStackTrace(); + System.exit(1); + } + } + + private static void downloadFileFromURL(String urlString, File destination) throws Exception { + if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { + String username = System.getenv("MVNW_USERNAME"); + char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); + Authenticator.setDefault(new Authenticator() { + @Override + protected PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication(username, password); + } + }); + } + URL website = new URL(urlString); + ReadableByteChannel rbc; + rbc = Channels.newChannel(website.openStream()); + FileOutputStream fos = new FileOutputStream(destination); + fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); + fos.close(); + rbc.close(); + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/maven-wrapper.jar b/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 0000000..2cc7d4a Binary files /dev/null and b/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/maven-wrapper.jar differ diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/maven-wrapper.properties b/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..642d572 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,2 @@ +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.gitignore b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.gitignore new file mode 100644 index 0000000..a2a3040 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.gitignore @@ -0,0 +1,31 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/** +!**/src/test/** + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ + +### VS Code ### +.vscode/ diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/MavenWrapperDownloader.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/MavenWrapperDownloader.java new file mode 100644 index 0000000..a45eb6b --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/MavenWrapperDownloader.java @@ -0,0 +1,118 @@ +/* + * Copyright 2007-present the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import java.net.*; +import java.io.*; +import java.nio.channels.*; +import java.util.Properties; + +public class MavenWrapperDownloader { + + private static final String WRAPPER_VERSION = "0.5.6"; + /** + * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. + */ + private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" + + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; + + /** + * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to + * use instead of the default one. + */ + private static final String MAVEN_WRAPPER_PROPERTIES_PATH = + ".mvn/wrapper/maven-wrapper.properties"; + + /** + * Path where the maven-wrapper.jar will be saved to. + */ + private static final String MAVEN_WRAPPER_JAR_PATH = + ".mvn/wrapper/maven-wrapper.jar"; + + /** + * Name of the property which should be used to override the default download url for the wrapper. + */ + private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; + + public static void main(String args[]) { + System.out.println("- Downloader started"); + File baseDirectory = new File(args[0]); + System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); + + // If the maven-wrapper.properties exists, read it and check if it contains a custom + // wrapperUrl parameter. + File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); + String url = DEFAULT_DOWNLOAD_URL; + if (mavenWrapperPropertyFile.exists()) { + FileInputStream mavenWrapperPropertyFileInputStream = null; + try { + mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); + Properties mavenWrapperProperties = new Properties(); + mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); + url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); + } catch (IOException e) { + System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); + } finally { + try { + if (mavenWrapperPropertyFileInputStream != null) { + mavenWrapperPropertyFileInputStream.close(); + } + } catch (IOException e) { + // Ignore ... + } + } + } + System.out.println("- Downloading from: " + url); + + File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); + if (!outputFile.getParentFile().exists()) { + if (!outputFile.getParentFile().mkdirs()) { + System.out.println( + "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); + } + } + System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); + try { + downloadFileFromURL(url, outputFile); + System.out.println("Done"); + System.exit(0); + } catch (Throwable e) { + System.out.println("- Error downloading"); + e.printStackTrace(); + System.exit(1); + } + } + + private static void downloadFileFromURL(String urlString, File destination) throws Exception { + if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { + String username = System.getenv("MVNW_USERNAME"); + char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); + Authenticator.setDefault(new Authenticator() { + @Override + protected PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication(username, password); + } + }); + } + URL website = new URL(urlString); + ReadableByteChannel rbc; + rbc = Channels.newChannel(website.openStream()); + FileOutputStream fos = new FileOutputStream(destination); + fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); + fos.close(); + rbc.close(); + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/maven-wrapper.jar b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 0000000..2cc7d4a Binary files /dev/null and b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/maven-wrapper.jar differ diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/maven-wrapper.properties b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..642d572 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,2 @@ +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/mvnw b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/mvnw new file mode 100644 index 0000000..a16b543 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/mvnw @@ -0,0 +1,310 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + if [ -n "$MVNW_REPOURL" ]; then + jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + else + jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + fi + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + if $cygwin; then + wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + fi + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget "$jarUrl" -O "$wrapperJarPath" + else + wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl -o "$wrapperJarPath" "$jarUrl" -f + else + curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + fi + + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/mvnw.cmd b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/mvnw.cmd new file mode 100644 index 0000000..c8d4337 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/mvnw.cmd @@ -0,0 +1,182 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM https://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + +FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/pom.xml b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/pom.xml new file mode 100644 index 0000000..046259d --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/pom.xml @@ -0,0 +1,63 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.2.5.RELEASE + + + com.JPA + grpc-client + 0.0.1-SNAPSHOT + grpc-client + Demo project for Spring Boot + jar + + + 1.8 + + + + + org.springframework.boot + spring-boot-starter-web + + + com.JPA + grpc-lib + 0.0.1-SNAPSHOT + + + org.projectlombok + lombok + + + net.devh + grpc-client-spring-boot-starter + 2.0.1.RELEASE + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.vintage + junit-vintage-engine + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientApplication.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientApplication.java new file mode 100644 index 0000000..a8c6234 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientApplication.java @@ -0,0 +1,18 @@ +package com.jpa.grpcclient; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@SpringBootApplication +public class GrpcClientApplication { + + public static void main(String[] args) { + SpringApplication.run(GrpcClientApplication.class, args); + } + + + + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientController.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientController.java new file mode 100644 index 0000000..ad3b466 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientController.java @@ -0,0 +1,18 @@ +package com.jpa.grpcclient; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class GrpcClientController { + + @Autowired + private GrpcClientService grpcClientService; + + @RequestMapping("/hello") + public String printMessage(@RequestParam(defaultValue = "mike") String name){ + return grpcClientService.sendMessage(name); + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientService.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientService.java new file mode 100644 index 0000000..1e94dbf --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/java/com/jpa/grpcclient/GrpcClientService.java @@ -0,0 +1,21 @@ +package com.jpa.grpcclient; + +import com.JPA.grpc.lib.HelloReply; +import com.JPA.grpc.lib.HelloRequest; +import com.JPA.grpc.lib.SimpleGrpc; +import io.grpc.Channel; +import net.devh.springboot.autoconfigure.grpc.client.GrpcClient; +import org.springframework.stereotype.Service; + +@Service +public class GrpcClientService { + @GrpcClient("local-grpc-server") + private Channel serverChannel; + + public String sendMessage(String name){ + SimpleGrpc.SimpleBlockingStub stub = SimpleGrpc.newBlockingStub(serverChannel); + HelloReply response = stub.sayHello(HelloRequest.newBuilder().setName(name).build()); + return response.getMessagee(); + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/resources/application.yml b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/resources/application.yml new file mode 100644 index 0000000..408f54e --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/main/resources/application.yml @@ -0,0 +1,14 @@ +server: + port: 9090 +spring: + application: + name: local-grpc-client +grpc: + client: + local-grpc-server: + host: + - ${LOCAL-GRPC-HOST:127.0.0.1} + port: + - 9898 + enableKeepAlive: true + keepAliveWithoutCalls: true \ No newline at end of file diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/test/java/com/jpa/grpcclient/GrpcClientApplicationTests.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/test/java/com/jpa/grpcclient/GrpcClientApplicationTests.java new file mode 100644 index 0000000..658958f --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-client/src/test/java/com/jpa/grpcclient/GrpcClientApplicationTests.java @@ -0,0 +1,13 @@ +package com.jpa.grpcclient; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GrpcClientApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/pom.xml b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/pom.xml new file mode 100644 index 0000000..efc5216 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + com.JPA + grpc-lib + 0.0.1-SNAPSHOT + jar + grpc-lib + + + 1.15.1 + 1.8 + 3.6.1 + 1.6.0 + 0.6.1 + UTF-8 + + + + + + io.grpc + grpc-all + ${grpc.version} + + + junit + junit + 4.13 + test + + + + + + + + kr.motd.maven + os-maven-plugin + ${os.plugin.version} + + + + + + + org.xolstice.maven.plugins + protobuf-maven-plugin + ${protobuf.plugin.version} + + + com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier} + + grpc-java + io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier} + + ${project.basedir}/src/main/java + + ${project.basedir}/src/main/proto + false + + + + + + compile + + compile + compile-custom + + + + + + + + + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloProto.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloProto.java new file mode 100644 index 0000000..7a5e0ac --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greet.proto + +package com.JPA.grpc.lib; + +public final class HelloProto { + private HelloProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_HelloRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_HelloRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_HelloReply_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_HelloReply_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\013greet.proto\"\034\n\014HelloRequest\022\014\n\004name\030\001 " + + "\001(\t\"\036\n\nHelloReply\022\020\n\010messagee\030\002 \001(\t22\n\006S" + + "imple\022(\n\010SayHello\022\r.HelloRequest\032\013.Hello" + + "Reply\"\000B \n\020com.JPA.grpc.libB\nHelloProtoP" + + "\001b\006proto3" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_HelloRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_HelloRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HelloRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_HelloReply_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_HelloReply_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_HelloReply_descriptor, + new java.lang.String[] { "Messagee", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloReply.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloReply.java new file mode 100644 index 0000000..2f7ec82 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloReply.java @@ -0,0 +1,541 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greet.proto + +package com.JPA.grpc.lib; + +/** + * Protobuf type {@code HelloReply} + */ +public final class HelloReply extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:HelloReply) + HelloReplyOrBuilder { +private static final long serialVersionUID = 0L; + // Use HelloReply.newBuilder() to construct. + private HelloReply(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private HelloReply() { + messagee_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private HelloReply( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + messagee_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.JPA.grpc.lib.HelloProto.internal_static_HelloReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.JPA.grpc.lib.HelloProto.internal_static_HelloReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.JPA.grpc.lib.HelloReply.class, com.JPA.grpc.lib.HelloReply.Builder.class); + } + + public static final int MESSAGEE_FIELD_NUMBER = 2; + private volatile java.lang.Object messagee_; + /** + * string messagee = 2; + */ + public java.lang.String getMessagee() { + java.lang.Object ref = messagee_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + messagee_ = s; + return s; + } + } + /** + * string messagee = 2; + */ + public com.google.protobuf.ByteString + getMessageeBytes() { + java.lang.Object ref = messagee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + messagee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!getMessageeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, messagee_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMessageeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, messagee_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.JPA.grpc.lib.HelloReply)) { + return super.equals(obj); + } + com.JPA.grpc.lib.HelloReply other = (com.JPA.grpc.lib.HelloReply) obj; + + boolean result = true; + result = result && getMessagee() + .equals(other.getMessagee()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGEE_FIELD_NUMBER; + hash = (53 * hash) + getMessagee().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.JPA.grpc.lib.HelloReply parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.JPA.grpc.lib.HelloReply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.JPA.grpc.lib.HelloReply parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.JPA.grpc.lib.HelloReply parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.JPA.grpc.lib.HelloReply parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.JPA.grpc.lib.HelloReply parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.JPA.grpc.lib.HelloReply prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code HelloReply} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:HelloReply) + com.JPA.grpc.lib.HelloReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.JPA.grpc.lib.HelloProto.internal_static_HelloReply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.JPA.grpc.lib.HelloProto.internal_static_HelloReply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.JPA.grpc.lib.HelloReply.class, com.JPA.grpc.lib.HelloReply.Builder.class); + } + + // Construct using com.JPA.grpc.lib.HelloReply.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + messagee_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.JPA.grpc.lib.HelloProto.internal_static_HelloReply_descriptor; + } + + @java.lang.Override + public com.JPA.grpc.lib.HelloReply getDefaultInstanceForType() { + return com.JPA.grpc.lib.HelloReply.getDefaultInstance(); + } + + @java.lang.Override + public com.JPA.grpc.lib.HelloReply build() { + com.JPA.grpc.lib.HelloReply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.JPA.grpc.lib.HelloReply buildPartial() { + com.JPA.grpc.lib.HelloReply result = new com.JPA.grpc.lib.HelloReply(this); + result.messagee_ = messagee_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.JPA.grpc.lib.HelloReply) { + return mergeFrom((com.JPA.grpc.lib.HelloReply)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.JPA.grpc.lib.HelloReply other) { + if (other == com.JPA.grpc.lib.HelloReply.getDefaultInstance()) return this; + if (!other.getMessagee().isEmpty()) { + messagee_ = other.messagee_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.JPA.grpc.lib.HelloReply parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.JPA.grpc.lib.HelloReply) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object messagee_ = ""; + /** + * string messagee = 2; + */ + public java.lang.String getMessagee() { + java.lang.Object ref = messagee_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + messagee_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string messagee = 2; + */ + public com.google.protobuf.ByteString + getMessageeBytes() { + java.lang.Object ref = messagee_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + messagee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string messagee = 2; + */ + public Builder setMessagee( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + messagee_ = value; + onChanged(); + return this; + } + /** + * string messagee = 2; + */ + public Builder clearMessagee() { + + messagee_ = getDefaultInstance().getMessagee(); + onChanged(); + return this; + } + /** + * string messagee = 2; + */ + public Builder setMessageeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + messagee_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFieldsProto3(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:HelloReply) + } + + // @@protoc_insertion_point(class_scope:HelloReply) + private static final com.JPA.grpc.lib.HelloReply DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.JPA.grpc.lib.HelloReply(); + } + + public static com.JPA.grpc.lib.HelloReply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HelloReply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HelloReply(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.JPA.grpc.lib.HelloReply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloReplyOrBuilder.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloReplyOrBuilder.java new file mode 100644 index 0000000..8c628b9 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloReplyOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: greet.proto + +package com.JPA.grpc.lib; + +public interface HelloReplyOrBuilder extends + // @@protoc_insertion_point(interface_extends:HelloReply) + com.google.protobuf.MessageOrBuilder { + + /** + * string messagee = 2; + */ + java.lang.String getMessagee(); + /** + * string messagee = 2; + */ + com.google.protobuf.ByteString + getMessageeBytes(); +} diff --git a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloRequest.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloRequest.java similarity index 72% rename from developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloRequest.java rename to developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloRequest.java index fc2b7aa..04b4723 100644 --- a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloRequest.java +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloRequest.java @@ -1,19 +1,16 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: entity/req_res.proto +// source: greet.proto -package com.reuben.grpc.entity; +package com.JPA.grpc.lib; /** - *
- *请求参数
- * 
- * - * Protobuf type {@code com.reuben.grpc.entity.HelloRequest} + * Protobuf type {@code HelloRequest} */ public final class HelloRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.reuben.grpc.entity.HelloRequest) + // @@protoc_insertion_point(message_implements:HelloRequest) HelloRequestOrBuilder { +private static final long serialVersionUID = 0L; // Use HelloRequest.newBuilder() to construct. private HelloRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); @@ -25,14 +22,19 @@ private HelloRequest() { @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); + return this.unknownFields; } private HelloRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { @@ -41,18 +43,19 @@ private HelloRequest( case 0: done = true; break; - default: { - if (!input.skipField(tag)) { - done = true; - } - break; - } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -61,19 +64,21 @@ private HelloRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloRequest_descriptor; + return com.JPA.grpc.lib.HelloProto.internal_static_HelloRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloRequest_fieldAccessorTable + return com.JPA.grpc.lib.HelloProto.internal_static_HelloRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.reuben.grpc.entity.HelloRequest.class, com.reuben.grpc.entity.HelloRequest.Builder.class); + com.JPA.grpc.lib.HelloRequest.class, com.JPA.grpc.lib.HelloRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -111,6 +116,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; @@ -120,13 +126,16 @@ public final boolean isInitialized() { return true; } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } + unknownFields.writeTo(output); } + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -135,24 +144,25 @@ public int getSerializedSize() { if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } + size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } - private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.reuben.grpc.entity.HelloRequest)) { + if (!(obj instanceof com.JPA.grpc.lib.HelloRequest)) { return super.equals(obj); } - com.reuben.grpc.entity.HelloRequest other = (com.reuben.grpc.entity.HelloRequest) obj; + com.JPA.grpc.lib.HelloRequest other = (com.JPA.grpc.lib.HelloRequest) obj; boolean result = true; result = result && getName() .equals(other.getName()); + result = result && unknownFields.equals(other.unknownFields); return result; } @@ -170,69 +180,69 @@ public int hashCode() { return hash; } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.HelloRequest parseFrom(byte[] data) + public static com.JPA.grpc.lib.HelloRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.reuben.grpc.entity.HelloRequest parseFrom(java.io.InputStream input) + public static com.JPA.grpc.lib.HelloRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.reuben.grpc.entity.HelloRequest parseDelimitedFrom(java.io.InputStream input) + public static com.JPA.grpc.lib.HelloRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.HelloRequest parseDelimitedFrom( + public static com.JPA.grpc.lib.HelloRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.reuben.grpc.entity.HelloRequest parseFrom( + public static com.JPA.grpc.lib.HelloRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -240,13 +250,15 @@ public static com.reuben.grpc.entity.HelloRequest parseFrom( .parseWithIOException(PARSER, input, extensionRegistry); } + @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.reuben.grpc.entity.HelloRequest prototype) { + public static Builder newBuilder(com.JPA.grpc.lib.HelloRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); @@ -259,29 +271,26 @@ protected Builder newBuilderForType( return builder; } /** - *
-   *请求参数
-   * 
- * - * Protobuf type {@code com.reuben.grpc.entity.HelloRequest} + * Protobuf type {@code HelloRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.reuben.grpc.entity.HelloRequest) - com.reuben.grpc.entity.HelloRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:HelloRequest) + com.JPA.grpc.lib.HelloRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloRequest_descriptor; + return com.JPA.grpc.lib.HelloProto.internal_static_HelloRequest_descriptor; } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloRequest_fieldAccessorTable + return com.JPA.grpc.lib.HelloProto.internal_static_HelloRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.reuben.grpc.entity.HelloRequest.class, com.reuben.grpc.entity.HelloRequest.Builder.class); + com.JPA.grpc.lib.HelloRequest.class, com.JPA.grpc.lib.HelloRequest.Builder.class); } - // Construct using com.reuben.grpc.entity.HelloRequest.newBuilder() + // Construct using com.JPA.grpc.lib.HelloRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -296,6 +305,7 @@ private void maybeForceBuilderInitialization() { .alwaysUseFieldBuilders) { } } + @java.lang.Override public Builder clear() { super.clear(); name_ = ""; @@ -303,88 +313,102 @@ public Builder clear() { return this; } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.reuben.grpc.entity.EntityProto.internal_static_com_reuben_grpc_entity_HelloRequest_descriptor; + return com.JPA.grpc.lib.HelloProto.internal_static_HelloRequest_descriptor; } - public com.reuben.grpc.entity.HelloRequest getDefaultInstanceForType() { - return com.reuben.grpc.entity.HelloRequest.getDefaultInstance(); + @java.lang.Override + public com.JPA.grpc.lib.HelloRequest getDefaultInstanceForType() { + return com.JPA.grpc.lib.HelloRequest.getDefaultInstance(); } - public com.reuben.grpc.entity.HelloRequest build() { - com.reuben.grpc.entity.HelloRequest result = buildPartial(); + @java.lang.Override + public com.JPA.grpc.lib.HelloRequest build() { + com.JPA.grpc.lib.HelloRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } - public com.reuben.grpc.entity.HelloRequest buildPartial() { - com.reuben.grpc.entity.HelloRequest result = new com.reuben.grpc.entity.HelloRequest(this); + @java.lang.Override + public com.JPA.grpc.lib.HelloRequest buildPartial() { + com.JPA.grpc.lib.HelloRequest result = new com.JPA.grpc.lib.HelloRequest(this); result.name_ = name_; onBuilt(); return result; } + @java.lang.Override public Builder clone() { return (Builder) super.clone(); } + @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.setField(field, value); } + @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } + @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, Object value) { + int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - Object value) { + java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.reuben.grpc.entity.HelloRequest) { - return mergeFrom((com.reuben.grpc.entity.HelloRequest)other); + if (other instanceof com.JPA.grpc.lib.HelloRequest) { + return mergeFrom((com.JPA.grpc.lib.HelloRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.reuben.grpc.entity.HelloRequest other) { - if (other == com.reuben.grpc.entity.HelloRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.JPA.grpc.lib.HelloRequest other) { + if (other == com.JPA.grpc.lib.HelloRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } + @java.lang.Override public final boolean isInitialized() { return true; } + @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.reuben.grpc.entity.HelloRequest parsedMessage = null; + com.JPA.grpc.lib.HelloRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.reuben.grpc.entity.HelloRequest) e.getUnfinishedMessage(); + parsedMessage = (com.JPA.grpc.lib.HelloRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -462,37 +486,40 @@ public Builder setNameBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.setUnknownFieldsProto3(unknownFields); } + @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { - return this; + return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:com.reuben.grpc.entity.HelloRequest) + // @@protoc_insertion_point(builder_scope:HelloRequest) } - // @@protoc_insertion_point(class_scope:com.reuben.grpc.entity.HelloRequest) - private static final com.reuben.grpc.entity.HelloRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:HelloRequest) + private static final com.JPA.grpc.lib.HelloRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.reuben.grpc.entity.HelloRequest(); + DEFAULT_INSTANCE = new com.JPA.grpc.lib.HelloRequest(); } - public static com.reuben.grpc.entity.HelloRequest getDefaultInstance() { + public static com.JPA.grpc.lib.HelloRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override public HelloRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HelloRequest(input, extensionRegistry); + return new HelloRequest(input, extensionRegistry); } }; @@ -505,7 +532,8 @@ public com.google.protobuf.Parser getParserForType() { return PARSER; } - public com.reuben.grpc.entity.HelloRequest getDefaultInstanceForType() { + @java.lang.Override + public com.JPA.grpc.lib.HelloRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloRequestOrBuilder.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloRequestOrBuilder.java similarity index 68% rename from developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloRequestOrBuilder.java rename to developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloRequestOrBuilder.java index 544c88e..0764707 100644 --- a/developer/back-end/wen20200323/yuanmao/grpc-demo/target/generated-sources/protobuf/java/com/reuben/grpc/entity/HelloRequestOrBuilder.java +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/HelloRequestOrBuilder.java @@ -1,10 +1,10 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: entity/req_res.proto +// source: greet.proto -package com.reuben.grpc.entity; +package com.JPA.grpc.lib; public interface HelloRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.reuben.grpc.entity.HelloRequest) + // @@protoc_insertion_point(interface_extends:HelloRequest) com.google.protobuf.MessageOrBuilder { /** diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/SimpleGrpc.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/SimpleGrpc.java new file mode 100644 index 0000000..8467d9a --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/java/com/JPA/grpc/lib/SimpleGrpc.java @@ -0,0 +1,280 @@ +package com.JPA.grpc.lib; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.15.1)", + comments = "Source: greet.proto") +public final class SimpleGrpc { + + private SimpleGrpc() {} + + public static final String SERVICE_NAME = "Simple"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getSayHelloMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SayHello", + requestType = com.JPA.grpc.lib.HelloRequest.class, + responseType = com.JPA.grpc.lib.HelloReply.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSayHelloMethod() { + io.grpc.MethodDescriptor getSayHelloMethod; + if ((getSayHelloMethod = SimpleGrpc.getSayHelloMethod) == null) { + synchronized (SimpleGrpc.class) { + if ((getSayHelloMethod = SimpleGrpc.getSayHelloMethod) == null) { + SimpleGrpc.getSayHelloMethod = getSayHelloMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName( + "Simple", "SayHello")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.JPA.grpc.lib.HelloRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.JPA.grpc.lib.HelloReply.getDefaultInstance())) + .setSchemaDescriptor(new SimpleMethodDescriptorSupplier("SayHello")) + .build(); + } + } + } + return getSayHelloMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SimpleStub newStub(io.grpc.Channel channel) { + return new SimpleStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SimpleBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new SimpleBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SimpleFutureStub newFutureStub( + io.grpc.Channel channel) { + return new SimpleFutureStub(channel); + } + + /** + */ + public static abstract class SimpleImplBase implements io.grpc.BindableService { + + /** + */ + public void sayHello(com.JPA.grpc.lib.HelloRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSayHelloMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getSayHelloMethod(), + asyncUnaryCall( + new MethodHandlers< + com.JPA.grpc.lib.HelloRequest, + com.JPA.grpc.lib.HelloReply>( + this, METHODID_SAY_HELLO))) + .build(); + } + } + + /** + */ + public static final class SimpleStub extends io.grpc.stub.AbstractStub { + private SimpleStub(io.grpc.Channel channel) { + super(channel); + } + + private SimpleStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SimpleStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new SimpleStub(channel, callOptions); + } + + /** + */ + public void sayHello(com.JPA.grpc.lib.HelloRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSayHelloMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + */ + public static final class SimpleBlockingStub extends io.grpc.stub.AbstractStub { + private SimpleBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private SimpleBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SimpleBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new SimpleBlockingStub(channel, callOptions); + } + + /** + */ + public com.JPA.grpc.lib.HelloReply sayHello(com.JPA.grpc.lib.HelloRequest request) { + return blockingUnaryCall( + getChannel(), getSayHelloMethod(), getCallOptions(), request); + } + } + + /** + */ + public static final class SimpleFutureStub extends io.grpc.stub.AbstractStub { + private SimpleFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private SimpleFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SimpleFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new SimpleFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture sayHello( + com.JPA.grpc.lib.HelloRequest request) { + return futureUnaryCall( + getChannel().newCall(getSayHelloMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_SAY_HELLO = 0; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SimpleImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SimpleImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_SAY_HELLO: + serviceImpl.sayHello((com.JPA.grpc.lib.HelloRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class SimpleBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SimpleBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.JPA.grpc.lib.HelloProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Simple"); + } + } + + private static final class SimpleFileDescriptorSupplier + extends SimpleBaseDescriptorSupplier { + SimpleFileDescriptorSupplier() {} + } + + private static final class SimpleMethodDescriptorSupplier + extends SimpleBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SimpleMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SimpleGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SimpleFileDescriptorSupplier()) + .addMethod(getSayHelloMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/proto/greet.proto b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/proto/greet.proto new file mode 100644 index 0000000..36789e0 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/main/proto/greet.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "com.JPA.grpc.lib"; +option java_outer_classname = "HelloProto"; + + + +service Simple{ + rpc SayHello (HelloRequest) returns (HelloReply){ + + } +} + +message HelloRequest{ + string name = 1; +} + +message HelloReply{ + string messagee = 2; +} \ No newline at end of file diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/test/java/com/JPA/AppTest.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/test/java/com/JPA/AppTest.java new file mode 100644 index 0000000..9b1b65c --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-lib/src/test/java/com/JPA/AppTest.java @@ -0,0 +1,20 @@ +package com.JPA; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.gitignore b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.gitignore new file mode 100644 index 0000000..a2a3040 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.gitignore @@ -0,0 +1,31 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/** +!**/src/test/** + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ + +### VS Code ### +.vscode/ diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/MavenWrapperDownloader.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/MavenWrapperDownloader.java new file mode 100644 index 0000000..a45eb6b --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/MavenWrapperDownloader.java @@ -0,0 +1,118 @@ +/* + * Copyright 2007-present the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import java.net.*; +import java.io.*; +import java.nio.channels.*; +import java.util.Properties; + +public class MavenWrapperDownloader { + + private static final String WRAPPER_VERSION = "0.5.6"; + /** + * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. + */ + private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" + + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; + + /** + * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to + * use instead of the default one. + */ + private static final String MAVEN_WRAPPER_PROPERTIES_PATH = + ".mvn/wrapper/maven-wrapper.properties"; + + /** + * Path where the maven-wrapper.jar will be saved to. + */ + private static final String MAVEN_WRAPPER_JAR_PATH = + ".mvn/wrapper/maven-wrapper.jar"; + + /** + * Name of the property which should be used to override the default download url for the wrapper. + */ + private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; + + public static void main(String args[]) { + System.out.println("- Downloader started"); + File baseDirectory = new File(args[0]); + System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); + + // If the maven-wrapper.properties exists, read it and check if it contains a custom + // wrapperUrl parameter. + File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); + String url = DEFAULT_DOWNLOAD_URL; + if (mavenWrapperPropertyFile.exists()) { + FileInputStream mavenWrapperPropertyFileInputStream = null; + try { + mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); + Properties mavenWrapperProperties = new Properties(); + mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); + url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); + } catch (IOException e) { + System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); + } finally { + try { + if (mavenWrapperPropertyFileInputStream != null) { + mavenWrapperPropertyFileInputStream.close(); + } + } catch (IOException e) { + // Ignore ... + } + } + } + System.out.println("- Downloading from: " + url); + + File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); + if (!outputFile.getParentFile().exists()) { + if (!outputFile.getParentFile().mkdirs()) { + System.out.println( + "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); + } + } + System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); + try { + downloadFileFromURL(url, outputFile); + System.out.println("Done"); + System.exit(0); + } catch (Throwable e) { + System.out.println("- Error downloading"); + e.printStackTrace(); + System.exit(1); + } + } + + private static void downloadFileFromURL(String urlString, File destination) throws Exception { + if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { + String username = System.getenv("MVNW_USERNAME"); + char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); + Authenticator.setDefault(new Authenticator() { + @Override + protected PasswordAuthentication getPasswordAuthentication() { + return new PasswordAuthentication(username, password); + } + }); + } + URL website = new URL(urlString); + ReadableByteChannel rbc; + rbc = Channels.newChannel(website.openStream()); + FileOutputStream fos = new FileOutputStream(destination); + fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); + fos.close(); + rbc.close(); + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/maven-wrapper.jar b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 0000000..2cc7d4a Binary files /dev/null and b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/maven-wrapper.jar differ diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/maven-wrapper.properties b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..642d572 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,2 @@ +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/mvnw b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/mvnw new file mode 100644 index 0000000..a16b543 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/mvnw @@ -0,0 +1,310 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + if [ -n "$MVNW_REPOURL" ]; then + jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + else + jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + fi + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + if $cygwin; then + wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + fi + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget "$jarUrl" -O "$wrapperJarPath" + else + wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl -o "$wrapperJarPath" "$jarUrl" -f + else + curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + fi + + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/mvnw.cmd b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/mvnw.cmd new file mode 100644 index 0000000..c8d4337 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/mvnw.cmd @@ -0,0 +1,182 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM https://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + +FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/pom.xml b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/pom.xml new file mode 100644 index 0000000..339446c --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/pom.xml @@ -0,0 +1,57 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.2.5.RELEASE + + + com.pc + grpc-server + 0.0.1-SNAPSHOT + grpc-server + Demo project for Spring Boot + jar + + + 1.8 + + + + + org.springframework.boot + spring-boot-starter + + + com.JPA + grpc-lib + 0.0.1-SNAPSHOT + + + org.projectlombok + lombok + + + net.devh + grpc-server-spring-boot-starter + 2.0.1.RELEASE + + + org.springframework.boot + spring-boot-starter-test + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/java/com/pc/grpcserver/GreeterService.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/java/com/pc/grpcserver/GreeterService.java new file mode 100644 index 0000000..ffa7291 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/java/com/pc/grpcserver/GreeterService.java @@ -0,0 +1,22 @@ +package com.pc.grpcserver; + + +import com.JPA.grpc.lib.HelloReply; +import com.JPA.grpc.lib.HelloRequest; +import com.JPA.grpc.lib.SimpleGrpc; +import io.grpc.stub.StreamObserver; + +import net.devh.springboot.autoconfigure.grpc.server.GrpcService; + + +@GrpcService(HelloReply.class) +public class GreeterService extends SimpleGrpc.SimpleImplBase{ + @Override + public void sayHello(HelloRequest request, StreamObserver responseObserver) { + String message = "hello" +request.getName(); + final HelloReply.Builder repluBuilder = HelloReply.newBuilder().setMessagee(message); + responseObserver.onNext(repluBuilder.build()); + responseObserver.onCompleted(); + System.out.println("return "+message); + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/java/com/pc/grpcserver/GrpcServerApplication.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/java/com/pc/grpcserver/GrpcServerApplication.java new file mode 100644 index 0000000..864c637 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/java/com/pc/grpcserver/GrpcServerApplication.java @@ -0,0 +1,14 @@ +package com.pc.grpcserver; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + + +@SpringBootApplication +public class GrpcServerApplication { + + public static void main(String[] args) { + SpringApplication.run(GrpcServerApplication.class, args); + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/resources/application.yml b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/resources/application.yml new file mode 100644 index 0000000..6c39f6c --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/main/resources/application.yml @@ -0,0 +1,6 @@ +spring: + application: + name: local-grpc-server +grpc: + server: + port: 9898 \ No newline at end of file diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/test/java/com/pc/grpcserver/GrpcServerApplicationTests.java b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/test/java/com/pc/grpcserver/GrpcServerApplicationTests.java new file mode 100644 index 0000000..d4331bc --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/grpc-server/src/test/java/com/pc/grpcserver/GrpcServerApplicationTests.java @@ -0,0 +1,13 @@ +package com.pc.grpcserver; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GrpcServerApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/mvnw b/developer/back-end/wen20200323/pancan/Grpc_demo/mvnw new file mode 100644 index 0000000..a16b543 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/mvnw @@ -0,0 +1,310 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + if [ -n "$MVNW_REPOURL" ]; then + jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + else + jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + fi + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + if $cygwin; then + wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + fi + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget "$jarUrl" -O "$wrapperJarPath" + else + wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl -o "$wrapperJarPath" "$jarUrl" -f + else + curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + fi + + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/mvnw.cmd b/developer/back-end/wen20200323/pancan/Grpc_demo/mvnw.cmd new file mode 100644 index 0000000..c8d4337 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/mvnw.cmd @@ -0,0 +1,182 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM https://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + +FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/pom.xml b/developer/back-end/wen20200323/pancan/Grpc_demo/pom.xml new file mode 100644 index 0000000..78df20f --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/pom.xml @@ -0,0 +1,104 @@ + + + 4.0.0 + pom + + grpc-lib + grpc-server + grpc-client + + + org.springframework.boot + spring-boot-starter-parent + 2.2.5.RELEASE + + + com.JPA + demo + 0.0.1-SNAPSHOT + demo + Demo project for Spring Boot + + + + + 1.8 + + + + + io.spring.platform + platform-bom + Cairo-RELEASE + pom + import + + + + com.JPA + grpc-lib + 0.0.1-SNAPSHOT + + + + net.devh + grpc-client-spring-boot-starter + 2.0.1.RELEASE + + + net.devh + grpc-server-spring-boot-starter + 2.0.1.RELEASE + + + + org.springframework.boot + spring-boot-starter-jdbc + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-data-jpa + 2.2.5.RELEASE + + + + + mysql + mysql-connector-java + 5.1.42 + runtime + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.vintage + junit-vintage-engine + + + + + junit + junit + 4.12 + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/Test01Application.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/Test01Application.java new file mode 100644 index 0000000..89e108a --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/Test01Application.java @@ -0,0 +1,24 @@ +package com.simplerequest.test01; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.ComponentScan; +import org.springframework.stereotype.Repository; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@SpringBootApplication +public class Test01Application { + + public static void main(String[] args) { + SpringApplication.run(Test01Application.class, args); + } + @RequestMapping(value = "/",method = RequestMethod.GET) + String Hello(){ + return "hello"; + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/User.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/User.java new file mode 100644 index 0000000..733df65 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/User.java @@ -0,0 +1,50 @@ +package com.simplerequest.test01.userdemo; + +import org.springframework.stereotype.Component; + +import javax.persistence.*; + +@Entity +@Table(name = "usertable") +@Component +public class User { + + @Id@GeneratedValue(strategy = GenerationType.AUTO) + private int id; + private String user; + private String psword; + + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public String getPsword() { + return psword; + } + + public void setPsword(String psword) { + this.psword = psword; + } + + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + @Override + public String toString() { + return "user{" + + "id='" + id + '\'' + + ", user='" + user + '\'' + + ", psword='" + psword + '\'' + + '}'; + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserController.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserController.java new file mode 100644 index 0000000..5507418 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserController.java @@ -0,0 +1,34 @@ +package com.simplerequest.test01.userdemo; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("/user") +public class UserController { + @Autowired + UserServiceImpl userService; + + @RequestMapping(value = "/userAdd",method = RequestMethod.PUT) + public User addUser(@RequestParam User user){ + User user1 = userService.add(user); + return user1; + } + + @RequestMapping(value = "/userUpdate",method = RequestMethod.POST) + public void insertUser(@RequestParam User user){ + userService.update(user); + } + + @RequestMapping(value = "/userDeleteById/{id}",method = RequestMethod.DELETE) + public void deleteUserById(@PathVariable("id") int id){ + userService.delete(id); + } + + @RequestMapping(value = "/userFindById/{id}",method = RequestMethod.GET) + public User findUserById(@PathVariable int id){ + User user = userService.findById(id); + return user; + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserDao.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserDao.java new file mode 100644 index 0000000..68a40a8 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserDao.java @@ -0,0 +1,10 @@ +package com.simplerequest.test01.userdemo; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.stereotype.Component; +import org.springframework.stereotype.Repository; + +@Component +@Repository +public interface UserDao extends JpaRepository { +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserSerice.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserSerice.java new file mode 100644 index 0000000..1123793 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserSerice.java @@ -0,0 +1,8 @@ +package com.simplerequest.test01.userdemo; + +public interface UserSerice { + User findById(int id); + void delete(int id); + User add(User user); + User update(User user); +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserServiceImpl.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserServiceImpl.java new file mode 100644 index 0000000..621f685 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/java/com/simplerequest/test01/userdemo/UserServiceImpl.java @@ -0,0 +1,37 @@ +package com.simplerequest.test01.userdemo; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.Optional; +@Service +public class UserServiceImpl implements UserSerice { + @Autowired + private UserDao userDao; + @Override + public User findById(int id) { + Optional optionalUser = userDao.findById(id); + System.out.println(optionalUser); + if (optionalUser.isPresent()) + return optionalUser.get(); + else + return null; + } + + @Override + public void delete(int id) { + userDao.deleteById(id); + } + + @Override + public User add(User user) { + User user1 = userDao.save(user); + return user1; + } + + @Override + public User update(User user) { + User user1 = userDao.save(user); + return user1; + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/resources/application.yml b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/resources/application.yml new file mode 100644 index 0000000..4dedf37 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/main/resources/application.yml @@ -0,0 +1,12 @@ +spring: + datasource: + driver-class-name: com.mysql.jdbc.Driver + url: jdbc:mysql://localhost:3306/fuck?charactorEncoding=utf-8&useSSL=false&serverTimeZone=GMT + username: root + password: + jpa: + show-sql: true + hibernate: + ddl-auto: none + + diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/ControllerTests.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/ControllerTests.java new file mode 100644 index 0000000..2792161 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/ControllerTests.java @@ -0,0 +1,42 @@ +package com.simplerequest.test01; + + +import com.simplerequest.test01.userdemo.User; +import com.simplerequest.test01.userdemo.UserController; +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.annotation.Rollback; +import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@Transactional +@RunWith(SpringRunner.class) +public class ControllerTests { + @Autowired + UserController ucl; + + @Test + public void findTest(){ + Assert.assertEquals(5,ucl.findUserById(5).getId()); + } + + @Test + @Rollback + public void deleteTest(){ + ucl.deleteUserById(5); + Assert.assertTrue("删除成功",ucl.findUserById(5)==null); + } + + @Test + @Rollback + public void addTest(){ + User user = new User(); + user.setUser("yuanmaomao"); + user.setPsword("159632489"); + Assert.assertEquals(user,ucl.addUser(user)); + } +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/UserDaoTests.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/UserDaoTests.java new file mode 100644 index 0000000..05f9570 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/UserDaoTests.java @@ -0,0 +1,46 @@ +package com.simplerequest.test01; + +import com.simplerequest.test01.userdemo.User; +import com.simplerequest.test01.userdemo.UserDao; +import org.junit.Assert; +import org.junit.jupiter.api.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.annotation.Rollback; +import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +@SpringBootTest +@RunWith(SpringRunner.class) +@Transactional +class UserDaoTests { + @Autowired + UserDao userDao; + + @Test + void daoFindTest() { +// List all = userDao.findAll(); +// System.out.println(all); + Assert.assertEquals(5,userDao.findAll().size()); + } + + @Test + @Rollback + void daoAddTest(){ + User user = new User(); + user.setUser("yuanmao"); + user.setPsword("1234567"); + Assert.assertEquals(user,userDao.save(user)); + } + + @Test + @Rollback + void daoDeleteTest(){ + userDao.deleteById(5); + Assert.assertTrue("删除成功",userDao.findById(5)==null); + } + +} diff --git a/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/UserServiceTests.java b/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/UserServiceTests.java new file mode 100644 index 0000000..22603a3 --- /dev/null +++ b/developer/back-end/wen20200323/pancan/Grpc_demo/src/test/java/com/simplerequest/test01/UserServiceTests.java @@ -0,0 +1,46 @@ +package com.simplerequest.test01; + + +import com.simplerequest.test01.userdemo.User; +import com.simplerequest.test01.userdemo.UserServiceImpl; +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.annotation.Rollback; +import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.transaction.annotation.Transactional; + +@SpringBootTest +@RunWith(SpringRunner.class) +@Transactional +public class UserServiceTests { + + @Autowired + UserServiceImpl usi; + + @Test + public void findTest(){ + Assert.assertEquals(5,usi.findById(5).getId()); + } + + + @Test + @Rollback + public void deleteTest(){ + usi.delete(5); + // Assert.assertFalse("删除失败",usi.findById(5)==null); + Assert.assertTrue("删除成功",usi.findById(5)==null); + + } + + @Test + @Rollback + public void addTest(){ + User user = new User(); + user.setUser("qwer"); + user.setPsword("159753"); + Assert.assertEquals(user,usi.add(user)); + } +} diff --git "a/developer/back-end/wen20200323/\346\235\250\345\210\251\345\215\216\347\254\254\344\270\211\346\234\237\344\275\234\344\270\2320326/springboot-01/.idea/.gitignore" b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/.gitignore similarity index 100% rename from "developer/back-end/wen20200323/\346\235\250\345\210\251\345\215\216\347\254\254\344\270\211\346\234\237\344\275\234\344\270\2320326/springboot-01/.idea/.gitignore" rename to developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/.gitignore diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/compiler.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/compiler.xml new file mode 100644 index 0000000..775a1a1 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/compiler.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/encodings.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/encodings.xml new file mode 100644 index 0000000..802578d --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/encodings.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml new file mode 100644 index 0000000..7cfe7bf --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml new file mode 100644 index 0000000..911591d --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_example_grpc_lib_1_0_SNAPSHOT.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_example_grpc_lib_1_0_SNAPSHOT.xml new file mode 100644 index 0000000..4368d27 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_example_grpc_lib_1_0_SNAPSHOT.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml new file mode 100644 index 0000000..aedd866 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_classmate_1_3_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml new file mode 100644 index 0000000..f9e8010 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml new file mode 100644 index 0000000..481917d --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_9_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml new file mode 100644 index 0000000..43e73cc --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_9_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml new file mode 100644 index 0000000..81e89ec --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_9_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml new file mode 100644 index 0000000..58868bb --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_9_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml new file mode 100644 index 0000000..3ece2f3 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_9_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_api_grpc_proto_google_common_protos_1_0_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_api_grpc_proto_google_common_protos_1_0_0.xml new file mode 100644 index 0000000..9ef244f --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_api_grpc_proto_google_common_protos_1_0_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_auth_google_auth_library_credentials_0_9_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_auth_google_auth_library_credentials_0_9_0.xml new file mode 100644 index 0000000..858c18d --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_auth_google_auth_library_credentials_0_9_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_0.xml new file mode 100644 index 0000000..5b4ff27 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml new file mode 100644 index 0000000..42ab821 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_findbugs_jsr305_3_0_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_gson_gson_2_8_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_gson_gson_2_8_5.xml new file mode 100644 index 0000000..067b17a --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_gson_gson_2_8_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_gson_gson_2_8_6.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_gson_gson_2_8_6.xml new file mode 100644 index 0000000..4982662 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_code_gson_gson_2_8_6.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_2_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_2_0.xml new file mode 100644 index 0000000..c569354 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_errorprone_error_prone_annotations_2_2_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_guava_guava_20_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_guava_guava_20_0.xml new file mode 100644 index 0000000..9ff727b --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_guava_guava_20_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_nano_protobuf_javanano_3_0_0_alpha_5.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_nano_protobuf_javanano_3_0_0_alpha_5.xml new file mode 100644 index 0000000..293516d --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_nano_protobuf_javanano_3_0_0_alpha_5.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_5_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_5_1.xml new file mode 100644 index 0000000..9738fc1 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_3_5_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_util_3_5_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_util_3_5_1.xml new file mode 100644 index 0000000..99765df --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_protobuf_protobuf_java_util_3_5_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_re2j_re2j_1_2.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_re2j_re2j_1_2.xml new file mode 100644 index 0000000..866a556 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_google_re2j_re2j_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml new file mode 100644 index 0000000..e33f3e5 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_squareup_okhttp_okhttp_2_5_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_squareup_okhttp_okhttp_2_5_0.xml new file mode 100644 index 0000000..63272b6 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_squareup_okhttp_okhttp_2_5_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_squareup_okio_okio_1_13_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_squareup_okio_okio_1_13_0.xml new file mode 100644 index 0000000..d1eb78e --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_squareup_okio_okio_1_13_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml new file mode 100644 index 0000000..3899977 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_all_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_all_1_15_1.xml new file mode 100644 index 0000000..51a864b --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_all_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_auth_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_auth_1_15_1.xml new file mode 100644 index 0000000..2e3fd74 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_auth_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_context_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_context_1_15_1.xml new file mode 100644 index 0000000..0aa3304 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_context_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_core_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_core_1_15_1.xml new file mode 100644 index 0000000..7d15428 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_core_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_netty_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_netty_1_15_1.xml new file mode 100644 index 0000000..57b3231 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_netty_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_okhttp_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_okhttp_1_15_1.xml new file mode 100644 index 0000000..f5a836f --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_okhttp_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_1_15_1.xml new file mode 100644 index 0000000..baf3368 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_lite_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_lite_1_15_1.xml new file mode 100644 index 0000000..dca13ec --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_lite_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_nano_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_nano_1_15_1.xml new file mode 100644 index 0000000..a07c233 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_protobuf_nano_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_services_1_14_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_services_1_14_0.xml new file mode 100644 index 0000000..0d06127 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_services_1_14_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_stub_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_stub_1_15_1.xml new file mode 100644 index 0000000..9dd5525 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_stub_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_testing_1_15_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_testing_1_15_1.xml new file mode 100644 index 0000000..9141c15 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_grpc_grpc_testing_1_15_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_buffer_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_buffer_4_1_23_Final.xml new file mode 100644 index 0000000..b90b6b6 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_buffer_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_buffer_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_buffer_4_1_45_Final.xml new file mode 100644 index 0000000..365c53e --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_buffer_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_4_1_23_Final.xml new file mode 100644 index 0000000..a9a27ba --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_4_1_45_Final.xml new file mode 100644 index 0000000..c734d72 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http2_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http2_4_1_23_Final.xml new file mode 100644 index 0000000..8d46b8c --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http2_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http2_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http2_4_1_45_Final.xml new file mode 100644 index 0000000..55534bc --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http2_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http_4_1_23_Final.xml new file mode 100644 index 0000000..f4aa4fa --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http_4_1_45_Final.xml new file mode 100644 index 0000000..b8d0b76 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_http_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_socks_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_socks_4_1_23_Final.xml new file mode 100644 index 0000000..5449280 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_socks_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_socks_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_socks_4_1_45_Final.xml new file mode 100644 index 0000000..1d38d07 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_codec_socks_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_common_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_common_4_1_23_Final.xml new file mode 100644 index 0000000..4be2910 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_common_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_common_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_common_4_1_45_Final.xml new file mode 100644 index 0000000..fa7a410 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_common_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_4_1_23_Final.xml new file mode 100644 index 0000000..67409d7 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_4_1_45_Final.xml new file mode 100644 index 0000000..4dd6b84 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_proxy_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_proxy_4_1_23_Final.xml new file mode 100644 index 0000000..1f339c2 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_proxy_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_proxy_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_proxy_4_1_45_Final.xml new file mode 100644 index 0000000..d709ab7 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_handler_proxy_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_resolver_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_resolver_4_1_23_Final.xml new file mode 100644 index 0000000..edd02e8 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_resolver_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_resolver_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_resolver_4_1_45_Final.xml new file mode 100644 index 0000000..dff1f50 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_resolver_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_transport_4_1_23_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_transport_4_1_23_Final.xml new file mode 100644 index 0000000..14f4526 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_transport_4_1_23_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_transport_4_1_45_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_transport_4_1_45_Final.xml new file mode 100644 index 0000000..7cc262d --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_netty_netty_transport_4_1_45_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_opencensus_opencensus_api_0_12_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_opencensus_opencensus_api_0_12_3.xml new file mode 100644 index 0000000..ee8cf06 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_opencensus_opencensus_api_0_12_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_opencensus_opencensus_contrib_grpc_metrics_0_12_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_opencensus_opencensus_contrib_grpc_metrics_0_12_3.xml new file mode 100644 index 0000000..77411b0 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__io_opencensus_opencensus_contrib_grpc_metrics_0_12_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml new file mode 100644 index 0000000..04d5165 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__javax_annotation_javax_annotation_api_1_3_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml new file mode 100644 index 0000000..4e8f4f6 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__javax_validation_validation_api_2_0_1_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__junit_junit_4_12.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__junit_junit_4_12.xml new file mode 100644 index 0000000..8f338b4 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__junit_junit_4_12.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_8.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_8.xml new file mode 100644 index 0000000..bd8c793 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml new file mode 100644 index 0000000..0402565 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_7_11.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_8.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_8.xml new file mode 100644 index 0000000..9cf72d0 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_8.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml new file mode 100644 index 0000000..4aefb40 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_7_11.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_client_spring_boot_autoconfigure_2_0_1_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_client_spring_boot_autoconfigure_2_0_1_RELEASE.xml new file mode 100644 index 0000000..9e8d307 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_client_spring_boot_autoconfigure_2_0_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_client_spring_boot_starter_2_0_1_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_client_spring_boot_starter_2_0_1_RELEASE.xml new file mode 100644 index 0000000..2d04cff --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_client_spring_boot_starter_2_0_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_server_spring_boot_autoconfigure_2_0_1_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_server_spring_boot_autoconfigure_2_0_1_RELEASE.xml new file mode 100644 index 0000000..25032db --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_server_spring_boot_autoconfigure_2_0_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_server_spring_boot_starter_2_0_1_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_server_spring_boot_starter_2_0_1_RELEASE.xml new file mode 100644 index 0000000..b050731 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_devh_grpc_server_spring_boot_starter_2_0_1_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml new file mode 100644 index 0000000..1d725b0 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml new file mode 100644 index 0000000..d0f7637 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__net_minidev_json_smart_2_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml new file mode 100644 index 0000000..196662e --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_10_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml new file mode 100644 index 0000000..076390f --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_10_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_34.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_34.xml new file mode 100644 index 0000000..90b3b87 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_34.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_34.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_34.xml new file mode 100644 index 0000000..d5d6275 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_34.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_34.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_34.xml new file mode 100644 index 0000000..ef8caa5 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_34.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml new file mode 100644 index 0000000..0eb3fb6 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_assertj_assertj_core_3_9_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_17.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_17.xml new file mode 100644 index 0000000..7d001cc --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_codehaus_mojo_animal_sniffer_annotations_1_17.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml new file mode 100644 index 0000000..a8d8226 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 0000000..01cdb39 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_core_2_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_core_2_1.xml new file mode 100644 index 0000000..4aa0ce2 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_core_2_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml new file mode 100644 index 0000000..cfeecd1 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_12_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_12_Final.xml new file mode 100644 index 0000000..df968f5 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_hibernate_validator_hibernate_validator_6_0_12_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml new file mode 100644 index 0000000..9f21042 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_2_Final.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml new file mode 100644 index 0000000..be2d6eb --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_mockito_mockito_core_2_15_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml new file mode 100644 index 0000000..46b788b --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_mockito_mockito_core_3_1_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml new file mode 100644 index 0000000..71dd519 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml new file mode 100644 index 0000000..45c3845 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_projectlombok_lombok_1_16_22.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_projectlombok_lombok_1_16_22.xml new file mode 100644 index 0000000..bcfde40 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_projectlombok_lombok_1_16_22.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml new file mode 100644 index 0000000..05fb21c --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml new file mode 100644 index 0000000..6da3290 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml new file mode 100644 index 0000000..5c07c2f --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_25.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_5_RELEASE.xml new file mode 100644 index 0000000..9b86b51 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_5_RELEASE.xml new file mode 100644 index 0000000..8a64e8a --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_5_RELEASE.xml new file mode 100644 index 0000000..87abeac --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_5_RELEASE.xml new file mode 100644 index 0000000..ba74b06 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_5_RELEASE.xml new file mode 100644 index 0000000..df15499 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_5_RELEASE.xml new file mode 100644 index 0000000..bd7a77b --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_5_RELEASE.xml new file mode 100644 index 0000000..20186d2 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_5_RELEASE.xml new file mode 100644 index 0000000..1ccf761 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_5_RELEASE.xml new file mode 100644 index 0000000..3c3d729 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_5_RELEASE.xml new file mode 100644 index 0000000..c6ec5ef --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_aop_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_aop_5_0_5_RELEASE.xml new file mode 100644 index 0000000..7bc14b1 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_aop_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_beans_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_beans_5_0_5_RELEASE.xml new file mode 100644 index 0000000..744af79 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_beans_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_context_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_context_5_0_5_RELEASE.xml new file mode 100644 index 0000000..2e5c14a --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_context_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_core_5_0_9_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_core_5_0_9_RELEASE.xml new file mode 100644 index 0000000..5106216 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_core_5_0_9_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_expression_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_expression_5_0_5_RELEASE.xml new file mode 100644 index 0000000..036b00e --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_expression_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_5_RELEASE.xml new file mode 100644 index 0000000..af8d348 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_jcl_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_test_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_test_5_0_5_RELEASE.xml new file mode 100644 index 0000000..06844cb --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_test_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_web_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_web_5_0_5_RELEASE.xml new file mode 100644 index 0000000..562ff7b --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_web_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_5_RELEASE.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_5_RELEASE.xml new file mode 100644 index 0000000..d7edbbf --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_springframework_spring_webmvc_5_0_5_RELEASE.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml new file mode 100644 index 0000000..ac5c614 --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_5_1.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml new file mode 100644 index 0000000..69f5c6c --- /dev/null +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/libraries/Maven__org_yaml_snakeyaml_1_19.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git "a/developer/back-end/wen20200323/\346\235\250\345\210\251\345\215\216\347\254\254\344\270\211\346\234\237\344\275\234\344\270\2320326/grpc/.idea/misc.xml" b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/misc.xml similarity index 68% rename from "developer/back-end/wen20200323/\346\235\250\345\210\251\345\215\216\347\254\254\344\270\211\346\234\237\344\275\234\344\270\2320326/grpc/.idea/misc.xml" rename to developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/misc.xml index 3ccb27b..a4989f5 100644 --- "a/developer/back-end/wen20200323/\346\235\250\345\210\251\345\215\216\347\254\254\344\270\211\346\234\237\344\275\234\344\270\2320326/grpc/.idea/misc.xml" +++ b/developer/back-end/wen20200323/yijianjun/grpc-spring-boot-demo/.idea/misc.xml @@ -1,13 +1,15 @@ - - -