package cn.jsxwsl.maven.ssm.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;


@Aspect
@Component(value="logAspect")
public class LogAspect {

	public void before(JoinPoint joinPoint){
		Signature signature = joinPoint.getSignature();

		String tagerClass = signature.getDeclaringTypeName();
		String tagerMehtod = signature.getName();
		String out = " *** " + tagerClass + " *** " + tagerMehtod + " *** ";
		
		for( int i=0; i<out.length(); i++){ 
			System.out.print("*");
		}
		
		System.out.println();
		System.out.println( " *** controller before *** " );
		System.out.println(out);

		for( int i=0; i<out.length(); i++){
			System.out.print("*");
		}
		System.out.println();
		
	}

	public void after(){
		System.out.println( " *** controller after *** " );
		System.out.println( " *** controller after *** " );
		System.out.println( " *** controller after *** " );
	}
	
	
	
}
最近下载更多
newnu88  LV12 2023年10月26日
lcqlcl  LV11 2023年8月29日
wmm500  LV3 2023年5月5日
renyuan  LV9 2022年12月6日
1641426181  LV4 2022年3月11日
Q375892799  LV9 2022年3月3日
543666826  LV33 2021年11月19日
wyx065747  LV67 2021年7月9日
zhangkun545  LV1 2021年3月15日
孙家乐  LV3 2021年1月4日
最近浏览更多
719818732  LV3 3月11日
微笑刺客  LV15 2023年12月8日
kingoneyang  LV13 2023年11月30日
skook7  LV2 2023年11月21日
再见理想  LV10 2023年9月21日
lcqlcl  LV11 2023年8月29日
刘刘爱代码 2023年6月29日
暂无贡献等级
gecongkai  LV8 2023年6月22日
絮尘惟倾恬 2023年5月22日
暂无贡献等级
wmm500  LV3 2023年5月5日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友