/SpringBootExceptionHandlingAspect

Spring Boot Exception Handling with Aspect-Oriented Programming with supporting Docker

Primary LanguageJava

Spring Boot Exception Handling with Aspect

📖 Information

  • The sample project is based on handling with the error while CRUD process tries to be implemented.
  • It throws an error covering its details information when any endpoint cannot be performed.
  • It also shows an information when any service triggered by its own endpoint is called according to AOP

🔨 Run the App

There are 2 ways to run the app.

Docker Compose

  1. : Download your project from this link https://github.com/Rapter1990/SpringBootExceptionHandlingAspect
  2. : Go to the project's home directory though this command : cd SpringBootExceptionHandlingAspect
  3. : Create docker image though this command docker build -t app .
  4. : Show all docker images in docker though this command docker image ls
  5. : Show the docker images running in docker though this command docker image ls
  6. : Run the project in docker though this command docker run -p 9999:8082 app

Maven

  1. Download your project from this link https://github.com/Rapter1990/SpringBootExceptionHandlingAspect
  2. Go to the project's home directory : cd SpringBootExceptionHandlingAspect
  3. Create a jar file though this command mvn clean install
  4. Run the project though this command mvn spring-boot:run

Use 8082 port to run the app in Maven part while docker runs the project in port number 9999.

Screenshots

Click here to show the screenshots of project

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Figure 11

Figure 12

Figure 13

Figure 14

Figure 15

Figure 16

Figure 17

Figure 18

Figure 19

Figure 20

Figure 21

Figure 22

Figure 23

Figure 24

Figure 25

Figure 26

Figure 27

Figure 28

Figure 29

Figure 30