You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,7 +343,7 @@ See also https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_
343
343
You can find link:grpc-spring-boot-starter-demo/src/main/resources/META-INF/validation/constraints-person.xml[demo configuration] and corresponding tests
Note, that both `request` and *response* messages are being validated.
346
+
Note, that both `request` and `response` messages are being validated.
347
347
348
348
If your gRPC method uses the same request and response message type, you can use `org.lognet.springboot.grpc.validation.group.RequestMessage` and
349
349
`org.lognet.springboot.grpc.validation.group.ResponseMessage` validation groups to apply different validation logic :
@@ -523,7 +523,7 @@ final Authentication auth = GrpcSecurity.AUTHENTICATION_CONTEXT_KEY.get();
523
523
By adding `io.github.lognet:grpc-client-spring-boot-starter` dependency to your *java grpc client* application you can easily configure per-channel or per-call credentials :
524
524
525
525
* Per-channel :
526
-
526
+
+
527
527
[source,java]
528
528
----
529
529
class MyClient{
@@ -550,7 +550,7 @@ class MyClient{
550
550
<3> Provide token generator function (Please refer to link:grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/auth/JwtAuthBaseTest.java[for example].)
551
551
552
552
* Per-call :
553
-
553
+
+
554
554
[source,java]
555
555
----
556
556
class MyClient{
@@ -618,7 +618,7 @@ Below are the essential parts of configurations for both server and client proje
618
618
----
619
619
620
620
* Configure gRPC server to register itself with Eureka.
621
-
621
+
+
622
622
[source,yaml]
623
623
.bootstrap.yaml
624
624
----
@@ -627,7 +627,7 @@ spring:
627
627
name: my-service-name <1>
628
628
----
629
629
<1> Eureka's `ServiceId` by default is the spring application name, provide it before the service registers itself with Eureka.
630
-
630
+
+
631
631
[source,yaml]
632
632
.application.yaml
633
633
----
@@ -646,7 +646,7 @@ eureka:
646
646
647
647
648
648
* Expose the gRPC service as part of Spring Boot Application.
0 commit comments