Update User.java

Remove constants and add empty constructor. 

Jackson fails otherwise
This commit is contained in:
Mark West 2022-05-14 14:58:18 +02:00 committed by GitHub
parent 538c116302
commit 2c79508f5d
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
package com.baeldung.javalin.User;
import com.fasterxml.jackson.annotation.JsonProperty;
public class User {
public final int id;
public final String name;
public int id;
public String name;
public User(){}
public User(int id, String name) {
this.id = id;