Do you have multiple parameters annotated with @RequestParam in a request mapping method and feel it isn’t readable?
The annotation looks pretty straightforward when there’s one or two input parameters expected in a request but when the list gets longer you might feel overwhelmed.
You cannot use the @RequestParam annotation inside objects but it doesn’t mean you’re left with no other solution. In this post, I’m going to show you how to bind multiple request parameters to an object in Spring application.
Continue reading “How to bind @RequestParam to object in Spring”
With a small amount of work, you can speed up your application and improve the overall user experience. In this article, you will learn how to use the built-in HTTP response cache mechanism for Spring controller’s results.
Continue reading “HTTP cache with Spring examples”