摘要:
在我们写controller或者Service层的时候,需要注入很多的mapper接口或者另外的service接口,这时候就会写很多的@AutoWired注解,代码看起来很乱lombok提供了一个注解: @RequiredArgsConstructor(onConstructor =@_(@Auto 阅读全文
posted @ 2021-06-08 21:58
君莫笑我十年游
阅读(2527)
评论(0)
推荐(0)
摘要:
https://iowiki.com/javatime/javatime_localdatetime_ofepochsecond.html 阅读全文
posted @ 2021-06-08 21:55
君莫笑我十年游
阅读(145)
评论(0)
推荐(0)
摘要:
可以参考@Transtactional的具体实现。 限制连接点的匹配,其中连接点的主题(在 Spring AOP 中执行的方法)具有给定的 annotation。 官方案例: 任何连接点(仅在 Spring AOP 中执行方法),其中执行方法具有@Transactional annotation: 阅读全文
posted @ 2021-06-08 13:37
君莫笑我十年游
阅读(1285)
评论(0)
推荐(0)
摘要:
@Before("customerJoinPointerExpression()") public void beforeMethod(JoinPoint joinPoint){ joinPoint.getSignature().getName(); // 获取目标方法名 joinPoint.get 阅读全文
posted @ 2021-06-08 13:33
君莫笑我十年游
阅读(2064)
评论(0)
推荐(1)

浙公网安备 33010602011771号