Loading

摘要: 参考: https://blog.csdn.net/qq_24076135/article/details/85212081 https://www.jianshu.com/p/036d31ae77d3 一、编写分页实体类 /** * 此类用于返回分页结果集 * @param <T> */ publ 阅读全文
posted @ 2019-11-15 20:34 小飞猪咯咯 阅读(761) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.jb51.net/article/136432.htm 一、查看内存 free -h free -m 二、解决方法: 1、增加swap交换空间解决问题: dd if=/dev/zero of=/swapfile bs=1M count=1024 mkswap /swap 阅读全文
posted @ 2019-11-15 20:12 小飞猪咯咯 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 使用注解写aop时最好使用环绕通知写 切面类: /** * 用于记录日志的工具类,它里面提供了公共的代码 */ @Component("logger") @Aspect //表示当前类是一个切面类 public class Logger { @Pointcut("execution(* cn.fly 阅读全文
posted @ 2019-11-15 13:39 小飞猪咯咯 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 参考: https://blog.csdn.net/jeffleo/article/details/54136904 一、AOP的核心概念AOP(Aspect Oriented Programming),是面向切面编程的技术。AOP基于IoC基础,是对OOP的有益补充,流行的AOP框架有Sping 阅读全文
posted @ 2019-11-15 12:53 小飞猪咯咯 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.zhihu.com/question/24863332 https://zhuanlan.zhihu.com/p/60842627 什么是AOP:(注:Spring Security的拦截是基于Servlet的Filter的,不是aop,不过两者在使用方式上类似) 好 阅读全文
posted @ 2019-11-15 10:22 小飞猪咯咯 阅读(151) 评论(0) 推荐(0) 编辑