AOP essentially uses proxies or bytecode addition technology to add new business logic to the business logic in three ways: pre-positioning, post-positioning, and wrapping, without having to immerse in the original business logic when writing code. Runtime exceptions in the AOP interceptor will directly affect the processing of the original business logic.
If you want to avoid exceptions in the AOP code without affecting the main business logic, you only need to use try...catch in the AOP code for packaging.
AOP essentially uses proxies or bytecode addition technology to add new business logic to the business logic in three ways: pre-positioning, post-positioning, and wrapping, without having to immerse in the original business logic when writing code. Runtime exceptions in the AOP interceptor will directly affect the processing of the original business logic.
If you want to avoid exceptions in the AOP code without affecting the main business logic, you only need to use try...catch in the AOP code for packaging.
If there is a synchronous operation in aop, if an exception occurs and is not caught, it will affect the main program.