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: daprdocs/content/en/java-sdk-contributing/java-contributing.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@ When contributing to the [Java SDK](https://github.com/dapr/java-sdk) the follow
12
12
13
13
The `examples` directory contains code samples for users to run to try out specific functionality of the various Java SDK packages and extensions. When writing new and updated samples keep in mind:
14
14
15
-
- All examples should be runnable on Windows, Linux, and MacOS. While Java code is consistent among operating systems, any pre/post example commands should provide options through [codetabs]({{< ref "contributing-docs.md#tabbed-content" >}})
15
+
- All examples should be runnable on Windows, Linux, and MacOS. While Java code is consistent among operating systems, any pre/post example commands should provide options through [tabpane]({{% ref "contributing-docs.md#tabbed-content" %}})
16
16
- Contain steps to download/install any required pre-requisites. Someone coming in with a fresh OS install should be able to start on the example and complete it without an error. Links to external download pages are fine.
17
17
18
18
## Docs
19
19
20
20
The `daprdocs` directory contains the markdown files that are rendered into the [Dapr Docs](https://docs.dapr.io) website. When the documentation website is built, this repo is cloned and configured so that its contents are rendered with the docs content. When writing docs, keep in mind:
21
21
22
-
- All rules in the [docs guide]({{< ref contributing-docs.md >}}) should be followed in addition to these.
22
+
- All rules in the [docs guide]({{% ref contributing-docs.md %}}) should be followed in addition to these.
23
23
- All files and directories should be prefixed with `java-` to ensure all file/directory names are globally unique across all Dapr documentation.
@@ -30,9 +30,9 @@ Dapr offers a variety of packages to help with the development of Java applicati
30
30
31
31
Next, import the Java SDK packages to get started. Select your preferred build tool to learn how to import.
32
32
33
-
{{< tabs Maven Gradle >}}
33
+
{{< tabpane text=true >}}
34
34
35
-
{{% codetab %}}
35
+
{{% tab header="Maven" %}}
36
36
<!--Maven-->
37
37
38
38
For a Maven project, add the following to your `pom.xml` file:
@@ -65,9 +65,9 @@ For a Maven project, add the following to your `pom.xml` file:
65
65
...
66
66
</project>
67
67
```
68
-
{{% /codetab %}}
68
+
{{% /tab %}}
69
69
70
-
{{% codetab %}}
70
+
{{% tab header="Gradle" %}}
71
71
<!--Gradle-->
72
72
73
73
For a Gradle project, add the following to your `build.gradle` file:
@@ -84,9 +84,9 @@ dependencies {
84
84
}
85
85
```
86
86
87
-
{{% /codetab %}}
87
+
{{% /tab %}}
88
88
89
-
{{< /tabs >}}
89
+
{{< /tabpane >}}
90
90
91
91
If you are also using Spring Boot, you may run into a common issue where the `OkHttp` version that the Dapr SDK uses conflicts with the one specified in the Spring Boot _Bill of Materials_.
92
92
@@ -106,7 +106,7 @@ Put the Dapr Java SDK to the test. Walk through the Java quickstarts and tutoria
106
106
107
107
| SDK samples | Description |
108
108
| ----------- | ----------- |
109
-
|[Quickstarts]({{< ref quickstarts >}}) | Experience Dapr's API building blocks in just a few minutes using the Java SDK. |
109
+
|[Quickstarts]({{% ref quickstarts %}}) | Experience Dapr's API building blocks in just a few minutes using the Java SDK. |
110
110
|[SDK samples](https://github.com/dapr/java-sdk/tree/master/examples)| Clone the SDK repo to try out some examples and get started. |
- For a full guide on output bindings visit [How-To: Output bindings]({{< ref howto-bindings.md >}}).
125
+
- For a full guide on output bindings visit [How-To: Output bindings]({{% ref howto-bindings.md %}}).
126
126
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/bindings/http) for code samples and instructions to try out output bindings.
Copy file name to clipboardExpand all lines: daprdocs/content/en/java-sdk-docs/java-ai/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,5 +3,5 @@ type: docs
3
3
title: "AI"
4
4
linkTitle: "AI"
5
5
weight: 3000
6
-
description: With the Dapr Conversation AI package, you can interact with the Dapr AI workloads from a Java application. To get started, walk through the [Dapr AI]({{< ref java-ai-howto.md >}}) how-to guide.
6
+
description: With the Dapr Conversation AI package, you can interact with the Dapr AI workloads from a Java application. To get started, walk through the [Dapr AI]({{% ref java-ai-howto.md %}}) how-to guide.
Copy file name to clipboardExpand all lines: daprdocs/content/en/java-sdk-docs/java-client/_index.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ description: How to get up and running with the Dapr Java SDK
9
9
The Dapr client package allows you to interact with other Dapr applications from a Java application.
10
10
11
11
{{% alert title="Note" color="primary" %}}
12
-
If you haven't already, [try out one of the quickstarts]({{< ref quickstarts >}}) for a quick walk-through on how to use the Dapr Java SDK with an API building block.
12
+
If you haven't already, [try out one of the quickstarts]({{% ref quickstarts %}}) for a quick walk-through on how to use the Dapr Java SDK with an API building block.
13
13
14
14
{{% /alert %}}
15
15
16
16
## Prerequisites
17
17
18
-
[Complete initial setup and import the Java SDK into your project]({{< ref java >}})
18
+
[Complete initial setup and import the Java SDK into your project]({{% ref java %}})
19
19
20
20
## Initializing the client
21
21
You can initialize a Dapr client as so:
@@ -24,7 +24,7 @@ You can initialize a Dapr client as so:
24
24
DaprClient client =newDaprClientBuilder().build()
25
25
```
26
26
27
-
This will connect to the default Dapr gRPC endpoint `localhost:50001`. For information about configuring the client using environment variables and system properties, see [Properties]({{< ref properties.md >}}).
27
+
This will connect to the default Dapr gRPC endpoint `localhost:50001`. For information about configuring the client using environment variables and system properties, see [Properties]({{% ref properties.md %}}).
28
28
29
29
#### Error Handling
30
30
@@ -52,7 +52,7 @@ Example of handling the DaprException and consuming the error details when using
52
52
53
53
## Building blocks
54
54
55
-
The Java SDK allows you to interface with all of the [Dapr building blocks]({{< ref building-blocks >}}).
55
+
The Java SDK allows you to interface with all of the [Dapr building blocks]({{% ref building-blocks %}}).
- For a full guide on service invocation visit [How-To: Invoke a service]({{< ref howto-invoke-discover-services.md >}}).
79
+
- For a full guide on service invocation visit [How-To: Invoke a service]({{% ref howto-invoke-discover-services.md %}}).
80
80
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/invoke) for code samples and instructions to try out service invocation
- For a full list of state operations visit [How-To: Get & save state]({{< ref howto-get-save-state.md >}}).
102
+
- For a full list of state operations visit [How-To: Get & save state]({{% ref howto-get-save-state.md %}}).
103
103
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/state) for code samples and instructions to try out state management
104
104
105
105
### Publish & subscribe to messages
@@ -225,7 +225,7 @@ class Solution {
225
225
}
226
226
```
227
227
228
-
- For a full guide on publishing messages and subscribing to a topic [How-To: Publish & subscribe]({{< ref howto-publish-subscribe.md >}}).
228
+
- For a full guide on publishing messages and subscribing to a topic [How-To: Publish & subscribe]({{% ref howto-publish-subscribe.md %}}).
229
229
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/pubsub/http) for code samples and instructions to try out pub/sub
- For a full guide on output bindings visit [How-To: Output bindings]({{< ref howto-bindings.md >}}).
246
+
- For a full guide on output bindings visit [How-To: Output bindings]({{% ref howto-bindings.md %}}).
247
247
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/bindings/http) for code samples and instructions to try out output bindings.
248
248
249
249
### Interact with input bindings
@@ -265,7 +265,7 @@ public class myClass {
265
265
}
266
266
```
267
267
268
-
- For a full guide on input bindings, visit [How-To: Input bindings]({{< ref howto-triggers >}}).
268
+
- For a full guide on input bindings, visit [How-To: Input bindings]({{% ref howto-triggers %}}).
269
269
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/bindings/http) for code samples and instructions to try out input bindings.
- For a full guide on secrets visit [How-To: Retrieve secrets]({{< ref howto-secrets.md >}}).
285
+
- For a full guide on secrets visit [How-To: Retrieve secrets]({{% ref howto-secrets.md %}}).
286
286
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/secrets) for code samples and instructions to try out retrieving secrets
287
287
288
288
### Actors
@@ -308,7 +308,7 @@ public interface DemoActor {
308
308
}
309
309
```
310
310
311
-
- For a full guide on actors visit [How-To: Use virtual actors in Dapr]({{< ref howto-actors.md >}}).
311
+
- For a full guide on actors visit [How-To: Use virtual actors in Dapr]({{% ref howto-actors.md %}}).
312
312
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/actors) for code samples and instructions to try actors
313
313
314
314
### Get & Subscribe to application configurations
@@ -341,7 +341,7 @@ try (DaprPreviewClient client = (new DaprClientBuilder()).buildPreviewClient())
341
341
}
342
342
```
343
343
344
-
- For a full list of configuration operations visit [How-To: Manage configuration from a store]({{< ref howto-manage-configuration.md >}}).
344
+
- For a full list of configuration operations visit [How-To: Manage configuration from a store]({{% ref howto-manage-configuration.md %}}).
345
345
- Visit [Java SDK examples](https://github.com/dapr/java-sdk/tree/master/examples/src/main/java/io/dapr/examples/configuration) for code samples and instructions to try out different configuration operations.
Copy file name to clipboardExpand all lines: daprdocs/content/en/java-sdk-docs/java-jobs/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,5 +3,5 @@ type: docs
3
3
title: "Jobs"
4
4
linkTitle: "Jobs"
5
5
weight: 3000
6
-
description: With the Dapr Jobs package, you can interact with the Dapr Jobs APIs from a Java application to trigger future operations to run according to a predefined schedule with an optional payload. To get started, walk through the [Dapr Jobs]({{< ref java-jobs-howto.md >}}) how-to guide.
6
+
description: With the Dapr Jobs package, you can interact with the Dapr Jobs APIs from a Java application to trigger future operations to run according to a predefined schedule with an optional payload. To get started, walk through the [Dapr Jobs]({{% ref java-jobs-howto.md %}}) how-to guide.
Copy file name to clipboardExpand all lines: daprdocs/content/en/java-sdk-docs/spring-boot/_index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ Besides the previous configuration (`DaprTestContainersConfig`) your tests shoul
122
122
123
123
## Leveraging Spring & Spring Boot programming model with Dapr
124
124
125
-
The Java SDK allows you to interface with all of the [Dapr building blocks]({{< ref building-blocks >}}).
125
+
The Java SDK allows you to interface with all of the [Dapr building blocks]({{% ref building-blocks %}}).
126
126
But if you want to leverage the Spring and Spring Boot programming model you can use the `dapr-spring-boot-starter` integration.
127
127
This includes implementations of Spring Data (`KeyValueTemplate` and `CrudRepository`) as well as a `DaprMessagingTemplate` for producing and consuming messages
128
128
(similar to [Spring Kafka](https://spring.io/projects/spring-kafka), [Spring Pulsar](https://spring.io/projects/spring-pulsar) and [Spring AMQP for RabbitMQ](https://spring.io/projects/spring-amqp)) and Dapr workflows.
0 commit comments