Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 1.65 KB

README.md

File metadata and controls

57 lines (47 loc) · 1.65 KB

java-microservice-template

  1. Build - mvn clean install
  2. Run - ./run.sh or mvn spring-boot:run
  3. Check
    1. http://localhost:8081/
    2. http://localhost:8081/echo
    3. http://localhost:8081/actuator/health
    4. http://localhost:8081/actuator/info

This tiny project is a sample of usage:

  1. Java 13
  2. Spring Boot
  3. Spring Data
  4. REST JSON Request/Response
  5. Protocol Buffers version 3
  6. Lombok
  7. Liquibase
  8. Logback
  9. DBUnit
  10. Checkstyle
  11. PMD
  12. PostgreSQL
  13. HSQLDB
  14. Maven

Liquibase and Maven

Prints which changesets need to be applied to the database.

mvn liquibase:status

Before update run this and check SQL-script in /target/liquibase/migrate.sql

mvn liquibase:updateSQL
mvn liquibase:update -e -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG

Before rollback run this and check SQL-script in /target/liquibase/migrate.sql

mvn liquibase:rollbackSQL -Dliquibase.rollbackCount=1
mvn liquibase:rollback -Dliquibase.rollbackTag=01.00.00 -e -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG

Rollback the one step back

mvn liquibase:rollback -Dliquibase.rollbackCount=1