Step 1: Add Dependency
Include the following dependency in your `pom.xml` if you are using Maven:
<dependency>
<groupId>com.example</groupId>
<artifactId>exception-spring</artifactId>
<version>1.0.0</version>
</dependency>
Or if you're using Gradle:
implementation 'com.example:exception-spring:1.0.0'
Step 2: Enable the Library
Annotate your main application class with @EnableExceptionSpring
to activate the pre-configurations.