Used simple pojo for showing MongDB CRUD operations and validations
This project includes:
- CREATE, Retrieve, Update, Delete Operations
- MVC Pattern
- Web Service
- Logger
- Validators and custom validator annotation
- Exceptions
- Regex Pattern Matchers
- Global exception handler
- MongoDB
- Message formatter
- @Service
- @RestController
- @RequestMapping
- @ResponseBody
- @GetMapping
- @PostMapping
- @PutMapping
- @DeleteMapping
- @ControllerAdvice
- @ExceptionHandler
- @Id
- @NotNull
- @Pattern
- @Documented
- @Constraint
- @Target
- @Retention
- Custom Validator Annotation
-
Build Jar with Gradle
Linux:
gradle build
Windows:
./gradlew build
-
Learn Docker version
docker -v
if docker dont installed:
- Docker For Windows - Download Setup
-
Build docker in root directory
docker build -f Dockerfile -t spring-boot-crud-example .
-
Show docker builded images
docker images
-
Run docker image with exposed port
docker run -p 8090:8090 spring-boot-crud-example
Please read CHANGELOG.md for details on our code of conduct, and the process for submitting pull requests to us.
- Bilal Demir - Initial work - bilalvdemir