Demo app for salary calculation (Spring Boot)
APACHE-2.0 License
Demo app for salary calculation (Spring Boot)
Java 17+ Spring Boot 3.0+
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=extern
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