We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class LogAspect { @Autowired public LogAspect(UserService service) { log.debug("{}", service); } // public void afterReturning(@Returning Object returnValue) { public void afterReturning() { // log.debug("LogAspect @AfterReturning returnValue: [{}]", returnValue); log.debug("LogAspect @AfterReturning"); } public void afterThrowing(@Throwing Throwable throwable) { log.error("LogAspect @AfterThrowing With Msg: [{}]", throwable.getMessage(), throwable); } public void before(@Annotated Logger logger) { // public void before(@Annotated Logger logger, @Argument User user) { // log.debug("LogAspect @Before method in class with logger: [{}] , Argument:[{}]", logger.value(), user); log.debug("LogAspect @Before method in class with logger: [{}]", logger.value()); } public Object after(@Returning User returnValue, @Arguments Object[] arguments) { log.debug("LogAspect @After method in class"); return returnValue.setIntroduce("女"); } public Object around(@JoinPoint Joinpoint joinpoint) throws Throwable { log.debug("LogAspect @Around Before method"); // int i = 1 / 0; Object proceed = joinpoint.proceed(); log.debug("LogAspect @Around After method"); return proceed; } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: