Everyone of us spend ample amount of time in learning big topics of Spring & Spring Boot. For example, Spring Boot REST, Spring Boot MVC, Spring Boot Security and many more, but generally we don't think about 'How to handle Exceptions/Errors in Spring Boot?'. This topic might become the most important for running the application without any interference. Also, it is very helpful in making other developers understand our code flow easily. Even finding out the origin of errors & exceptions becomes very irritating, if we have not handled them properly in our code. Sometimes, we need to debug the whole flow of code to find it out & resolve accordingly. In this way, Exception handling plays an important role in
Tag: @ExceptionHandler
How to develop REST CRUD API using Spring Boot ?
It will not be an overstatement if I say that we can't develop an enterprise application without using webservices as an integration layer. Generally, we develop webservices in the form of either a producer or a consumer or both. However Producer is very important for us because we develop it in Java only. Also, we have full control of database interaction logic implementation with us. Now you might have interpreted the significance of our article 'How to develop REST CRUD API using Spring Boot?'. On the other hand, Consumer can be Angular Application, ReactJS Application, Android Device, iOS Device and many others or even our favorite java based RestTemplate(Spring Boot REST Client). Our focus in this article is on developing producer
Spring Boot Errors and AOP Annotations With Examples
In this article we will discuss on 'Spring Boot Errors and AOP Annotations with Examples'. Needless to say, these annotations play a crucial role in creating Spring Boot Applications. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Boot Errors and AOP Annotations with Examples' here only. Annotations on Spring Errors & Exceptions Spring Boot proves that Exception handling is a crosscutting concern by offering some annotations such as @Exception Handler, @ContollerAdvice, @ResponseStatus. In order to learn about Spring Boot Exception Handling in detail, kindly visit our article 'How To Handle Exceptions & Errors In Spring Boot?'. @ResponseStatus In Spring Boot's Default Exception handling