BAEL-5114: Do not use deprecated PropertyNamingStrategy class (#11371)

This commit is contained in:
kwoyke 2021-10-27 20:56:46 +02:00 committed by GitHub
parent 301961ade1
commit a41f46c594
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
package com.baeldung.jackson.advancedannotations;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class NamingBean {
private int id;
private String beanName;