How to consume a REST service which accepts form data in Spring?
Let’s say you want to consume a REST service from your Spring Boot / Spring MVC application. The developer who created the REST service you wanted to consume, developed it in such a way that it accepts only form data. May be he created it to accept data from HTML forms. And now you want…
How to map Enum Types to JSON requests in Spring Boot automatically?
Let’s say you have created a REST service which accepts a JSON request. And one of the attributes in the request can only have a range of constant values. For example , the departments an employee can belong to. And the best way to represent this , is to use an Enum. But will a…