Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codelur/mongodb

Spring Boot Application with JPA, MongoDB, and Global Exception Handling
https://github.com/codelur/mongodb

exception-handling java jpa jpa-hibernate microservices mongodb spring springboot

Last synced: 15 days ago
JSON representation

Spring Boot Application with JPA, MongoDB, and Global Exception Handling

Awesome Lists containing this project

README

        

# Spring Boot Application with JPA, MongoDB, and Global Exception Handling

## Description

This project is a **Spring Boot** application that demonstrates how to use **Spring Data JPA** (for relational databases), **Spring Data MongoDB** (for NoSQL databases), and **Global Exception Handling** with `@ControllerAdvice`. The application provides RESTful endpoints for managing entities in both a relational database and MongoDB.

### Key Features
- **Spring Boot**: Simplified development with auto-configuration and embedded active servers.
- **Spring Data JPA**: For working with relational databases (e.g., MySQL, PostgreSQL).
- **Spring Data MongoDB**: For working with MongoDB as a NoSQL database.
- **Global Exception Handling**: Centralized exception management using `@ControllerAdvice`.
- **REST API**: Expose RESTful web services for CRUD operations.

## Technologies Used

- **Java 17**
- **Spring Boot 3.x**
- **Spring Data JPA**
- **Spring Data MongoDB**
- **MongoDB**
- **Maven** (for build and dependency management)

## Setup and Configuration

### Prerequisites
- **Java 17+**
- **Maven 3.x+**
- **MongoDB** instance running