• 大小: 3.34MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-04
  • 语言: Java
  • 标签: java  ssm  blog  maven  

资源简介

个人博客,有哪些不明白的可以私信我,我可以做解答,另外,里面可能有些内容的不适应,勿怪,maven管理jar包,用IDEA会好点

资源截图

代码片段和文件信息

package springmvc.aop;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class LoginLogger {

Logger logger = LogManager.getLogger(“root“);

@Pointcut(“execution(** springmvc.controller.LoginController.login(..))“)
public void userlogin() {
}

@Around(“userlogin()“)
public void watchUserLogin(ProceedingJoinPoint jp) {
System.out.println(“login logger start“);
try {

logger.info(“login start“);

jp.proceed();

logger.info(“login end“);
} catch (Throwable e) {

logger.info(“throw a ex:“ + e);
}
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-26 01:57  SSM_BLOG-master\
     文件       17595  2018-04-26 01:57  SSM_BLOG-master\BUGS.docx
     文件        2418  2018-04-26 01:57  SSM_BLOG-master\README.md
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\
     文件        1280  2018-04-26 01:57  SSM_BLOG-master\springmvc\.classpath
     文件        1048  2018-04-26 01:57  SSM_BLOG-master\springmvc\.project
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\
     文件         626  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\.jsdtscope
     文件         422  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.jdt.core.prefs
     文件          86  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.m2e.core.prefs
     文件         658  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.wst.common.component
     文件         245  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          48  2018-04-26 01:57  SSM_BLOG-master\springmvc\.settings\org.eclipse.wst.validation.prefs
     文件        7755  2018-04-26 01:57  SSM_BLOG-master\springmvc\pom.xml
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\
     文件       13498  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\applicationContext.xml
     文件        1604  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\database.properties
     文件        2607  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\log4j2.xml
     文件         186  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\mail.properties
     文件         183  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\redis.properties
     文件        5007  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springMVC.xml
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springmvc\
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springmvc\aop\
     文件         816  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springmvc\aop\LoginLogger.java
     文件         512  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springmvc\aop\LoginLoggerMethod.java
     目录           0  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springmvc\controller\
     文件        3920  2018-04-26 01:57  SSM_BLOG-master\springmvc\src\main\java\springmvc\controller\ArticleController.java
............此处省略541个文件信息

评论

共有 条评论