How to remove or hide default property from json output which using default library of asp.net

Advertisements I’ve got code on fist screenshot first screenshot, needed to display only this four properties. But when i start using this code i get my 4 properties + 2 unnecessary. Second screenshot(result):second screenshot I tried to this one, but its not workingfull code with an attempt >Solution : use an anonymous type instead of… Read More How to remove or hide default property from json output which using default library of asp.net

How to log execution time with ExceptionHandler

Advertisements I am trying to refactor my application and now i also want to use an ExceptionHandler. Therefore I already implemented some Methods like @org.springframework.web.bind.annotation.ExceptionHandler(Exception.class) public final ResponseEntity<SomeClass> handleException(Exception e) { // do something } Now I want to log the execution time of the calling method also when the ExeptionHandler method is called. In… Read More How to log execution time with ExceptionHandler