You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sanjay Patel edited this page Oct 13, 2018
·
3 revisions
This page is a work in progress, which discusses how to use Spring Lemon effectively.
While we groom this page, the best way to quickly catch up with Spring Lemon features is to explore its source code!
Using Utility classes
Searching for Le*Utils should bring the Spring Lemon utility classes. They contain many vital utility methods that would be highly useful in your applications. Go through those, and use those!
Handling exceptions
Spring Lemon provides comprehensive exception handling and validation mechanisms. Read here and here for some more details.
To add a new exception handler to your application, just create a bean inheriting from AbstractExceptionHandler or one of its subclasses, like AbstractBadRequestExceptionHandler. To override an existing exception handler, add a new handler with a higher priority (i.e. annotate that with @Order(Ordered.HIGHEST_PRECEDENCE)).