spring boot – Multiple HttpMessageConverter's for JSON & XML Formats – Stack Overflow

We are looking for the following HTTP Message converter using the Spring Boot HttpMessageConvert for JSON as well as for the XML as below.

<Employee>
   <emp_id>1</emp_id>
   <emp_name>Employee1</emp_name>
   <email>employee1@test.com</email>
   <contact_number>7778889999</contact_number>
</Employee>

{
  "empId": 1,
  "empName": "Employee1",
  "email": "employee1@test.com",
  "contactNumber": "7778889999"
}
  1. JSON PropertyNamingStrategy is should be CamelCase.

  2. XML PropertyNamingStrategy is should be PascalCase.

Read more here: Source link