I have example controller method
public void generateFile(@RequestBody final FileRequest request) {
...
}
Sometimes not all fields of this class FileRequest are filled, is there any way to set the default value when the value in the request is empty or null?
I mean something like @Default