Skip to content

Commit

Permalink
Small update to Spring Boot Readme (#1958)
Browse files Browse the repository at this point in the history
* small update to SpringBoot readme - add build id and link to samples

Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>

* small update to SpringBoot readme - add build id and link to samples

Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>

---------

Signed-off-by: Tihomir Surdilovic <tihomir@temporal.io>
  • Loading branch information
tsurdilo committed Jan 2, 2024
1 parent 440965b commit 0bb0782
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions temporal-spring-boot-autoconfigure-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ It should be trivial to adjust if your application uses .properties configuratio
Your application should be a `@SpringBootApplication`
and have `io.temporal:temporal-spring-boot-starter-alpha:${temporalVersion}` added as a dependency.

# Samples

The [Java SDK samples repo](https://github.com/temporalio/samples-java) contains a number of [Spring Boot samples](https://github.com/temporalio/samples-java/tree/main/springboot) that use this module.

# Connection setup

The following configuration connects to a locally started Temporal Server
Expand All @@ -28,6 +32,16 @@ class App {
}
```

If you are working with schedules, you can also autowire `ScheduleClient` in your SpringBoot app:

```java
@SpringBootApplication
class App {
@Autowire
private ScheduleClient scheduleClient;
}
```

## mTLS

[Generate PKCS8 or PKCS12 files](https://github.com/temporalio/samples-server/blob/main/tls/client-only/mac/end-entity.sh).
Expand Down Expand Up @@ -100,6 +114,8 @@ spring.temporal:
# rate-limits:
# max-worker-activities-per-second: 5.0
# max-task-queue-activities-per-second: 5.0
# build-id:
# worker-build-id: "1.0.0"
# workflow-cache:
# max-instances: 600
# max-threads: 600
Expand Down

0 comments on commit 0bb0782

Please sign in to comment.