Exception handling through spring AOP + Aspectj
问题 In my project I have a domain layer which is basically POJO and a Spring controller / service layer that is sitting on top of the domain layer. I also have an AOP layer which is sitting between the service and domain. My domain layer is throwing business exceptions which are now being handled in the service layer. However I want to change it so that exception thrown from domain layer will be handled in the AOP layer. AOP layer will some kind of error response and send it back to spring