- Java 17
- Spring Boot 3
- JPA (Hibernate 6.2.0)
- Liquibase
- H2
- MySql
- JUnit5
- Mockito
- Lombok
- Swagger
- Maven
- Sonar
- TDD, DDD
1 - Run With Docker Compose
- If you want to connect H2 Database; run
docker compose upin the base path - If you want to connect another database; open docker-compose file in the base path and activate the commented lines. Then run
docker compose upin the base path
2 - Run With IDE or other tools (maven, java -jar)
- If you want to connect H2 Database; pass argument:
spring.profiles.active=h2 - If you want to connect another database; Pass arguments:
DATASOURCE_URL={DATASOURCE_URL}
DATASOURCE_USERNAME={DATASOURCE_USERNAME}
DATASOURCE_PASSWORD={DATASOURCE_PASSWORD}
DATASOURCE_DRIVER_CLASS_NAME={DATASOURCE_DRIVER_CLASS_NAME}
Note: The application tested with MySql and H2. So problems may occur with another databases.
Swagger UI: http://localhost:8080/swagger-ui/index.html
H2 Console (If you use): http://localhost:8080/h2-console
- Username: sa
- Password: password
- JDBC URL: jdbc:h2:mem:testdb
- Driver Class Name: org.h2.Driver
| ACCOUNT_NUMBER | BALANCE | OWNER | CREATED_DATE |
|---|---|---|---|
| 111-1111 | 0 | Simple Banking | {generated} |
If you want to review project with sonar, run this command in base path:
mvn clean verify sonar:sonar \
-Dsonar.projectKey={sonar-project-key} \
-Dsonar.host.url={sonar-url} \
-Dsonar.login={sonar-token}
Also visit the link: https://docs.sonarqube.org/9.6/try-out-sonarqube/
Last Sonar Report:

