Example of implementing CRUD operations for MongoDB in Spring Boot applications
The application is designed as an internal microservice with no public access to it and no user interface.
API documentation will be available once the application is started
Java
- version21
Maven
- for building the applicationSpring Boot
- version3.4.3
Spring Cloud
- version2023.0.3
Spring Boot Actuator
- it's for real-world applicationsSpring Boot Maven Plugin
- for create Docker-ImageDocker
- containerizationDocker-Compose
- infrastructureMongoDB
- NoSQL database
spring-boot-with-mongodb-in-action/
├── src/main/
| ├── java/com/dudko/example/
| | ├── controller/ # domain level of requests and controllers
| | ├── domain/ # persistent domain level and repositories
| | ├── model/ # service level of the domain, used in business logic
| | ├── service/ # business logic
| ├── resources/ # configs
├── compose.yml # docker-compose file
├── pom.xml # artifact of Maven
├── postman_collection.json # collection of requests for Postman
docker-compose -f compose.yml up
Anatoly Dudko