随笔分类 -  Spring

摘要:步骤 创建一个注解类 注意两个参数; 1. target 目标类行 方法/类? 2. Retention 生效策略 编写切面逻辑 类上注解打起来 @Aspect 切点注解打起来,规则配起来@Pointcut("@annotation(com.example.chaoming.exercise.jdk 阅读全文
posted @ 2021-01-13 16:53 朝明 阅读(287) 评论(0) 推荐(0) 编辑
摘要:aaa 阅读全文
posted @ 2020-12-29 14:25 朝明 阅读(98) 评论(0) 推荐(0) 编辑
摘要:aaa 阅读全文
posted @ 2020-12-28 23:31 朝明 阅读(61) 评论(0) 推荐(0) 编辑
摘要:aaa 阅读全文
posted @ 2020-12-28 22:46 朝明 阅读(421) 评论(0) 推荐(0) 编辑
摘要:qqq 阅读全文
posted @ 2020-12-28 22:40 朝明 阅读(121) 评论(0) 推荐(0) 编辑
摘要:1111 阅读全文
posted @ 2020-12-28 22:36 朝明 阅读(97) 评论(0) 推荐(0) 编辑
摘要:入口程序 首先,我们回到到梦开始的地方 @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplicati 阅读全文
posted @ 2020-12-28 18:26 朝明 阅读(150) 评论(0) 推荐(0) 编辑
摘要:import org.aopalliance.intercept.MethodInterceptor; import org.apache.commons.collections.CollectionUtils; import org.springframework.aop.support.Stat 阅读全文
posted @ 2020-11-20 09:27 朝明 阅读(139) 评论(0) 推荐(0) 编辑
摘要:StopWatch对应的中文名称为秒表,经常我们对一段代码耗时检测的代码如下: 用法展示 @Transactional(rollbackFor = Exception.class) public CollageOrderResponseVO colleageOrder(CollageOrderReq 阅读全文
posted @ 2020-11-07 11:34 朝明 阅读(199) 评论(0) 推荐(0) 编辑
摘要:一些间的使用 阅读全文
posted @ 2019-07-04 13:11 朝明 阅读(197) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示