It's important to remember that the example code used in this course was designed to support learning a specific aspect of Temporal, not to serve as a ready-to-use template for implementing a production system.
For the exercises, make sure to run temporal server start-dev --ui-port 8080 --db-filename clusterdata.db in one terminal to start the Temporal server. For more details on this command, please refer to the Setting up a Local Development Environment chapter in the course. Note: If you're using the Codespaces environment to run this exercise, you can skip this step.
- macOS
- Intellij IDEA 2025
- Java 21
$ temporal server start-dev --ui-port 8080 CLI 1.5.1 (Server 1.29.1, UI 2.42.1) Server: localhost:7233 UI: http://localhost:8080 Metrics: http://localhost:51289/metrics
见: samples/greeting
见: demos/service-workflow
# 启动微服务 demos/service-workflow/src/main/java/greetingworkflow/Microservice.java # 启动 worker demos/service-workflow/src/main/java/greetingworkflow/GreetingWorker.java # 启动 workflow demos/service-workflow/src/main/java/greetingworkflow/Starter.java greeting-workflow ¡Hola, Cyper!