- Java 21
- Maven (multi-module)
- Spring Boot 3
- PostgreSQL
- Lombok + MapStruct
- Shared Kotlin library
shared-kotlin-lib(Kotlin shared code)inventory-service(port8081)billing-service(port8082)
- Open in Dev Container.
- Build once (Optional):
mvn -DskipTests compile
- Run both services (VS Code):
- Run/Debug ->
Spring Boot-Run Both Microservices
- Run/Debug ->
- Inventory:
http://localhost:8081 - Billing:
http://localhost:8082 - Actuator:
/actuator/health
- Edit code.
- Save file (Optional).
- VS Code auto-builds.
- DevTools restarts service.
Notes:
- Works for both services.
- For shared Kotlin changes, recompile:
mvn -pl shared-kotlin-lib -am compile
mvn -DskipTests compile
mvn test
mvn verify