ControllerAdvice exception handling based on URL matching

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… Read More ControllerAdvice exception handling based on URL matching