Demo app for salary calculation (Spring Boot)
Java 21+
Spring Boot 3.3+
curl http://localhost:8080/api/employee/dcffa631-595a-44e6-8f8c-1c077de895bf
curl -i -X POST -d "{\"firstName\": \"John\",\"lastName\": \"Wick\",\"standardHoursPerDay\": 8,\"salaryPerHour\": 5000}" http://localhost:8080/api/employee -H "Content-Type: application/json"
curl http://localhost:8080/api/employee/all
mvn spring-boot:run -Dspring-boot.run.profiles=local -Dspring-boot.run.jvmArguments="-Duser.timezone=Europe/Moscow"
mvn spring-boot:run -Dspring-boot.run.profiles=extern -Dspring-boot.run.jvmArguments="-Duser.timezone=Europe/Moscow"
mvn clean spring-boot:build-image -DskipTests -DskipSpotbugs=true
Unfortunately, built application doesn't start in container
mvn clean spring-boot:build-image -DskipTests -DskipSpotbugs=true -Pnative
docker-compose --project-name="salary-calc" up -d
docker-compose --project-name="salary-calc" down