摘要:
来源:力扣(LeetCode) 链接:https://leetcode.cn/problems/minimum-cost-to-move-chips-to-the-same-position 有 n 个筹码。第 i 个筹码的位置是 position[i] 。 我们需要把所有筹码移到同一个位置。在一步 阅读全文
posted @ 2022-07-08 20:52
xy7112
阅读(45)
评论(0)
推荐(0)
摘要:
来源:力扣(LeetCode) 链接:https://leetcode.cn/problems/two-sum 给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那 两个 整数,并返回它们的数组下标。 你可以假设每种输入只会对应一个答案。但是 阅读全文
posted @ 2022-07-08 20:24
xy7112
阅读(12)
评论(0)
推荐(0)
摘要:
演示 与之前的 @ControllerAdvice 中增强类似,分为控制器类中的懒惰解析, 和 @ControllerAdvice 注解标注的配置类中的,ExceptionHandlerExceptionResolver 初始化解析 点击查看代码 public static void main(St 阅读全文
posted @ 2022-07-08 17:33
xy7112
阅读(39)
评论(0)
推荐(0)
摘要:
ExceptionHandlerExceptionResolver 代码参考 点击查看代码 public static void main(String[] args) throws NoSuchMethodException { ExceptionHandlerExceptionResolver 阅读全文
posted @ 2022-07-08 17:17
xy7112
阅读(35)
评论(0)
推荐(0)
摘要:
ResponseBodyAdvice 增强 ResponseBodyAdvice 增强 在整个 HandlerAdapter 调用过程中所处的位置 点击查看代码 @Configuration public class WebConfig { @ControllerAdvice //将所有返回值类型统 阅读全文
posted @ 2022-07-08 17:02
xy7112
阅读(123)
评论(0)
推荐(0)