You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use it in my spring boot project. And I need snake_case property name in result json.
This is my config:
@Bean
public JsonViewSupportFactoryBean views() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
return new JsonViewSupportFactoryBean(objectMapper);
}
But it doesn't work, I just get camelCase property name.
And I try @JsonNaming on classes, it doesn't work neither.
Does json-view not support custom property naming strategy?
The text was updated successfully, but these errors were encountered:
First of all, Thanks for your library.
I use it in my spring boot project. And I need snake_case property name in result json.
This is my config:
But it doesn't work, I just get camelCase property name.
And I try @JsonNaming on classes, it doesn't work neither.
Does json-view not support custom property naming strategy?
The text was updated successfully, but these errors were encountered: