The Common Framework is a Spring Boot application that provides common functionalities that are shared by the other microservices.
- Includes cookie generation and validation for the authenticated endpoints in the other services.
- Includes Global Exception handling and Error handling.
- Includes the method for getting the user details.
- Includes the logging feature and its customization.
- Includes the common models that are shared.
- Java 17
- Spring Boot 3.0.5
- MongoDB
- JSON Web Tokens (JWT)
- Spring Security
To get started with the Common Framework, follow these steps:
- Clone the repository:
git clone https://tools.publicis.sapient.com/bitbucket/scm/pem/common-framework.git
- Navigate to the common framework directory:
cd common-framework
- Build the common-framework:
mvn clean build
Now, this service can be integrated with other services by including its dependency in their pom.xml
file.
The application defines a set of error messages for common scenarios. These messages are configurable and can be found in the application.yml
file. You can customize the error messages according to your needs.
Contributions to the Common Framework are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
- Fork the repository.
- Create your feature branch:
git checkout -b feature/my-new-feature
. - Commit your changes:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/my-new-feature
. - Submit a pull request.
The Common Framework is open-source and available under the MIT License.
Feel free to modify and adapt the code to suit your needs.