Update User.java
Remove constants and add empty constructor. Jackson fails otherwise
This commit is contained in:
parent
538c116302
commit
2c79508f5d
@ -1,8 +1,11 @@
|
|||||||
package com.baeldung.javalin.User;
|
package com.baeldung.javalin.User;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
public class User {
|
public class User {
|
||||||
public final int id;
|
public int id;
|
||||||
public final String name;
|
public String name;
|
||||||
|
|
||||||
|
public User(){}
|
||||||
|
|
||||||
public User(int id, String name) {
|
public User(int id, String name) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user