首页>代码>ssm(spring+spring mvc+mybatis)整合jquery实现手机二维码扫描登录项目实例>/ssm/src/main/java/cn/jsxwsl/maven/ssm/aspect/LogAspect.java
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日