How to preload common resource in a Spring Boot RestController?
I have a Controller with RequestMapping(foo/{fooId}/bar/})
, FooEntity
is used in all methods, how can i preload FooEntity
for all the methods of FooController
?
Cancel transaction if remote client is gone
Is there any way to cancel transaction if remote client is gone?
Validate the size of incoming request
I have a following controllerClass, which takes a request and process it. It works fine with below code.