How to allow snake case in spring data rest

Viewed 311

I am sending request to endpoints provided by spring data rest in a spring boot application. But it takes only camel case in request body. How do i send snake case in request body?

1 Answers

Just add the following code to your application.properties file

spring.jackson.property-naming-strategy=SNAKE_CASE
Related