Spring Boot with In-memory ActiveMQ

Spring Boot with In-memory ActiveMQ

The in-memory ActiveMQ can be used to quickly test any message broker specific functionality when we don’t have an external message broker readily available. In the given example we will submit a string to a RESTful web service which will save the message string in the queue on message broker. Then we will implement a listener to read the message from the queue and display […]

Read Me

Spring REST Error Handling

Spring REST Error Handling

Spring framework provides three ways to handle error response while processing a request in the controller class Locally in the method handling a specific request Specific controller method level Global controller level Locally using @ResponseEntity The following code only updates the Person if it already exists otherwise responds with a HTTP Status Code 400 that is Bad Request. The ResponseEntity takes the object of response […]

Read Me