Answer the question
In order to leave comments, you need to log in
What pattern should be used to define generic json-a in java?
There are several types of json objects that should come to 1 controller
@PostMapping("/")
public void execute(@Valid @RequestBody ExecuteRequest request) {
}
public class ExecuteRequest {
@NotBlank
private String method;
@NotBlank
private Object payload;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question