摘要: 来源:力扣(LeetCode) 链接:https://leetcode.cn/problems/reverse-linked-list 给你单链表的头节点 head ,请你反转链表,并返回反转后的链表。 点击查看代码 public ListNode reverseList(ListNode head 阅读全文
posted @ 2022-06-25 23:51 xy7112 阅读(28) 评论(0) 推荐(0)
摘要: 来源:力扣(LeetCode) 链接:https://leetcode.cn/problems/merge-two-sorted-lists 将两个升序链表合并为一个新的 升序 链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 点击查看代码 public ListNode mergeTw 阅读全文
posted @ 2022-06-25 23:49 xy7112 阅读(16) 评论(0) 推荐(0)
摘要: 带参数绑定的通知方法调用 点击查看代码 @Aspect static class MyAspect { @Before("execution(* foo(..))") // 静态通知调用,不带参数绑定,执行时不需要切点 public void before1() { System.out.print 阅读全文
posted @ 2022-06-25 12:12 xy7112 阅读(101) 评论(0) 推荐(0)
摘要: SQL 数据源技术 数据源技术是Druid,运行时可以在日志中看到对应的数据源初始化信息,具体如下: INFO 28600 [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource INFO 28600 [ mai 阅读全文
posted @ 2022-06-25 10:01 xy7112 阅读(257) 评论(0) 推荐(0)