Jackson is ignoring spring.jackson.property-naming-strategy=SNAKE_CASE. I am using springBootVersion 1.4.2.RELEASE. In my application.properties file, I have added
spring.jackson.property-naming-strategy=SNAKE_CASE
But Jackson is not honoring this property, and my REST response is still camelCase. Interestingly, this annotation works just fine
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
With this annotation, I am getting snake_case response. But I don't want to annotate each response class, it's a bit annoying.
Edit
I tried using fully qualified class name as well,
spring.jackson.property-naming-strategy=com.fasterxml.jackson.databind.PropertyNamingStrategy.SnakeCaseStrategy
that did not work either