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
# Development mode (auto-restart)
./gradlew bootRun
# Build and run JAR
./gradlew build
java -jar build/libs/temporal-example-1.0.0.jar
# With custom config
./gradlew bootRun --args='--spring.profiles.active=dev'
Docker Development
# Build image
docker build -t temporal-example .# Run with compose (includes Temporal)
docker-compose up
# Run app only
docker run -p 8080:8080 temporal-example
IDE Setup
IntelliJ IDEA
Import as Gradle project
Install plugins: Checkstyle, PMD, SpotBugs
Configure code style: checkstyle.xml
Enable annotation processing
VS Code
Install Java Extension Pack
Install Gradle for Java
Configure Java 17+ in settings
Testing
Unit Tests
Located in src/test/java
Use JUnit 5 and Spring Boot Test
Mock external dependencies
Integration Tests
Test Temporal workflows with temporal-testing
Use TestContainers for database tests (if needed)
Test REST endpoints with MockMvc
Running Specific Tests
# All tests
./gradlew test# Specific test class
./gradlew test --tests MoneyTransferWorkflowTest
# Test pattern
./gradlew test --tests "*Workflow*"