An opinionated kit to start hacking in SpringBoot
- a
gradle
configuration with separate modulesdto
: Data tranfer objectspersistense
: DB resources and Entitiesservice
: Business logicweb
: the Spring Boot application
H2
used as the temp in-memory db- a sample flow to get/set a User entity and the consequent parts:
UserRequestDto/UserResponseDto
indto
moduleUserDao/UserRepository
inpersistence
moduleUserConverter\UserService\UserUtils\UserValidator
inservice
moduleUserController
inweb
module
cd application
./gradlew clean build
./gradlew test
./gradlew codeCoverage
SPRING_PROFILES_ACTIVE=development ./gradlew sbsk-web:bootRun
- to check a simple endpoint open http://localhost:8080/api/v1/user/get?name=Your name
- to chech all active endpoints open http://localhost:8080/swagger-ui.html#/operation-handler
- to check the api you can also use the postman collections in
documentation/api/postman