摘要:
# SpringBoot整合aop @Component @Aspect //切面声明 public class LogComponent { // 标注拦截的方法 // 后面*的表示org.javaboy.aop.service目录下所有方法,方法入参为 数量任意,类型任意 @Pointcut(" 阅读全文
posted @ 2021-05-23 22:48
半瓶牛奶🥛
阅读(171)
评论(0)
推荐(0)
摘要:
不使用框架监听器实现 在servlet/Jsp项目中,可以通过监听器来实现,ServletContextListener能够监听 ServletContext 对象的生命周期,实际上就是监听 Web 应用的生命周期。 @Component public class MyListener implem 阅读全文
posted @ 2021-05-23 21:05
半瓶牛奶🥛
阅读(340)
评论(0)
推荐(0)