File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
daprdocs/content/en/java-sdk-docs/spring-boot Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,18 @@ private DaprClient daprClient;
53
53
54
54
This will connect to the default Dapr gRPC endpoint ` localhost:50001 ` , requiring you to start Dapr outside of your application.
55
55
56
+ {{% alert title="Note" color="primary" %}}
57
+ By default, the following properties are preconfigured for ` DaprClient ` and ` DaprWorkflowClient ` :
58
+ ``` properties
59
+ dapr.client.http-endpoint =http://localhost
60
+ dapr.client.http-port =3500
61
+ dapr.client.grpc-endpoint =localhost
62
+ dapr.client.grpc-port =50001
63
+ dapr.client.api-token =<Your Remote App API Token>
64
+ ```
65
+ These values are used by default, but you can override them in your ` application.properties ` file to suit your environment.
66
+ {{% /alert %}}
67
+
56
68
You can use the ` DaprClient ` to interact with the Dapr APIs anywhere in your application, for example from inside a REST endpoint:
57
69
58
70
``` java
You can’t perform that action at this time.
0 commit comments