1.前言统一的异常处理对于应用的重要性不言而喻。今天我们来介绍一下Spring如何来进行统一的Rest异常处理。同时我们也会简单比较一下它们之间的优劣。2.@Controller结合@ExceptionHandler在控制器中声明一个方法然后用@ExceptionHandler注解标记即可:@Controller@RequestMapping("/test")publicclassTestCont
分类:
编程语言 时间:
2020-09-16 12:41:29
阅读次数:
55
Arthas 是阿里巴巴开源的应用诊断利器,提供了 profiler 命令,可以生成热点火焰图。通过采样录制调用链路来做性能分析,极大提升了线上排查性能问题的效率。
分类:
其他好文 时间:
2020-09-15 21:29:02
阅读次数:
54
We know that when we create a new UI5 control instance, we can explicitly pass an id into constructor. In this case, developer takes responsibility to ...
分类:
其他好文 时间:
2020-09-15 20:54:51
阅读次数:
29
My series of Cloud Application Studio Blogs How to detect EditMode in an Embedded Component Step by step to enable your custom BO with attachment uplo ...
分类:
其他好文 时间:
2020-09-12 21:42:43
阅读次数:
46
Part1 – how to test odata service generated by CDS view Part2 – what objects are automatically generated after you activate one CDS view Part3 – how i ...
分类:
其他好文 时间:
2020-09-12 21:42:03
阅读次数:
44
官方文档https://docs.microsoft.com/zh-cn/sql/linux/quickstart-install-connect-red-hat?view=sql-server-linux-ver15 1.下载 Microsoft SQL Server 2019 Red Hat 存 ...
分类:
数据库 时间:
2020-09-11 16:01:37
阅读次数:
116
1 <div class="row mt16 o_settings_container"> 2 <div class="col-12 col-lg-6 o_setting_box"> 3 <div class="o_setting_right_pane"> 4 <label for="resourc ...
分类:
其他好文 时间:
2020-09-11 14:22:32
阅读次数:
33
昨天发现线上试跑期的一个程序挂了,平时都跑的好好的,查了下日志是因为昨天运营跑了一家美妆top级淘品牌店,会员量近千万,一下子就把128G的内存给爆了,当时并行跑了二个任务,没辙先速写一段代码限流,后面再做进一步优化。一:背景1.背景介绍因为是自己写的代码,所以我知道问题出现在哪里,如果大家看过我之前写的文章应该知道我用全内存跑了很多模型对用户打标签,一个模型就是一组定向的筛选条件,而为了加速处理
分类:
其他好文 时间:
2020-09-11 14:19:07
阅读次数:
33
题:https://atcoder.jp/contests/abc177/tasks/abc177_f 题意:给定n和m,代表有(n+1)*m的矩阵,有n个询问,每个询问给定a和b,代表在第 i 行的第a列到第b列,不能进行向下操作,其余位置可以进行向下或向右操作,问在给定的限制中,从第1行的任意位 ...
分类:
其他好文 时间:
2020-09-10 23:07:00
阅读次数:
45
本篇是关于tf.keras高级API的概述,先后介绍了Keras的基本使用,tf.keras的序列模型(Sequential).add()乐高堆积方式,tf.kerasde函数式API,tf.keras的自定义层和类,call(定义前向过程),build(生成权重)和callbacks,模型的保存(... ...
分类:
其他好文 时间:
2020-09-08 21:04:59
阅读次数:
63