Im learning Spring Boot and I made a demo but when I POST a request to add a Object it didn\'t work!
The error message is:
{
\"timestamp\": 15168
For deserialisation purposes Topic
must have a zero-arg constructor.
For example:
public class Topic {
private String id;
private String name;
private String author;
private String desc;
// for deserialisation
public Topic() {}
public Topic(String id, String name, String author, String desc) {
this.id = id;
this.name = name;
this.author = author;
this.desc = desc;
}
// getters and setters
}
This is the default behaviour of the Jackson library.