首页
首页
沸点
课程
直播
活动
竞赛
商城
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
JAVA学习之路
OHmYGod107517
创建于2021-07-06
订阅专栏
Java学习日常记录
暂无订阅
共6篇文章
创建于2021-07-06
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
Spring 的事件监听最简单使用例子
创建一个事件 继承spring提供的通用事件ApplicationEvent实现自定义事件,也可以通过继承其他的spring提供的事件,实现一些额外的功能,比如ApplicationContextEv
利用Spring的applicationContext实现接口的策略模式
利用Spring的applicationContext实现接口的策略模式 Map<String, T> maps = applicationContext.getBeansOfType(clazz);
AspectJ 实现 AOP
@Aspect annotation里面写上标志这个切面的注解 @aopTest 这个注解 Around 表示 before+after ProceedingJoinPoint 连接点
反射+注解 实现 AOP
/** * @author xyf * @date 2021/7/7 11:09 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.
反射实现AOP
/** * @author xyf * @date 2021/7/7 10:16 */ public interface Aspect { void before(); void after(); /
JAVA - 词频统计
BufferInputStream、FileChannel、ForkJoinPool、callable<T>、MappedByteBuffer、