package com.withstars.aop; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereotype.Component; /** * Created with IntelliJ IDEA. * Description: * User: withstars * Date: 2018-02-22 * Time: 20:41 * Mail: withstars@126.com */ @Component @Aspect public class LogAspect { private final Log log = LogFactory.getLog(getClass()); @Before("execution(* com.withstars.controller.UserController.signin(..))") public void loginLogAspect(JoinPoint joinPoint){ String methodName=joinPoint.getSignature().toShortString(); String args=joinPoint.getArgs().toString(); log.info("---Before method "+methodName+" invoke, param:" +args+"---"); } }
最近下载更多
2131234536546 LV7
3月31日
xiaopengzep LV1
3月24日
wanglinddad LV55
3月11日
qq573914838 LV5
3月5日
THyper LV2
3月1日
罗清晨 LV12
2月21日
lovelyy LV11
2月1日
qwe6002 LV9
1月11日
XiaoSong888 LV2
1月10日
lilong007 LV20
2023年12月30日
最近浏览更多
来一杯西瓜冰咩 LV1
5月6日
之额着 LV3
4月23日
getset LV8
4月20日
tassel_2024
4月14日
暂无贡献等级
微信网友_6444139264921600 LV6
4月13日
玖零定制问题修复 LV34
4月4日
wddq123
4月2日
暂无贡献等级
2131234536546 LV7
3月31日
xiaopengzep LV1
3月24日
953558449
3月22日
暂无贡献等级