In my application I have two type of urls - /secure and /unsecure. For any exception arising from /secure/** URLs I want to do a certain type of exception handling and provide detailed error response and for /unsecure/** I want to provide a generic response entity. So basically want to have two ControllerAdvice classes for these two different type of URL endpoints. Is it possible to have multiple controller advice that can do this so that I can define different behaviours for the same exception in these two controller advices.
I have many controllers with /secure/** URL and many with /unsecure/** endpoints and some controllers are mix of both /secure/** and /unsecure/** endpoints. Thanks!