[BAEL-14127] - Moved code to jackson-simple
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.baeldung.jackson.annotation;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JacksonInject;
|
||||
|
||||
public class BeanWithInject {
|
||||
@JacksonInject
|
||||
public int id;
|
||||
public String name;
|
||||
|
||||
public BeanWithInject() {
|
||||
|
||||
}
|
||||
|
||||
public BeanWithInject(final int id, final String name) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user