一、概念 二、异常的处理在Spring MVC 中有四种方式进行处理 使用默认的DefaultHandlerExceptionResolver 异常处理类 编程式异常处理 自定义HandlerExceptionResolver(全局的处理) 使用注解的方式@ExceptionHandler/@Con ...
分类:
其他好文 时间:
2018-11-29 21:46:31
阅读次数:
230
swaggerconfig。cs using System.Web.Http;using WebActivatorEx;using Lunz.Web.RiskSystem.Api;using Swashbuckle.Application;using Lunz.Web.RiskSystem.Api. ...
分类:
其他好文 时间:
2018-11-29 17:59:01
阅读次数:
221
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s ...
分类:
其他好文 时间:
2018-11-29 17:54:12
阅读次数:
219
Console的9种用法,1、显示信息的命令 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <!DOCTYPE html> <html> <head> <title>常用console命令</title> <meta http-equiv="Content-Type" co ...
分类:
其他好文 时间:
2018-11-29 15:30:46
阅读次数:
178
"传送门" 仙人掌直径,以前好像模拟赛的时候做到过一道基环树的直径,打了个很麻烦的然而还错了……今天才发现那就是这个的弱化版啊…… 如果是树的话用普通的dp即可,记$f[u]$表示$u$往下最长能伸多少。我们用一个类似tarjan的做法,在dfs的过程中记录dfn和low,如果某条边不在环内,那么这 ...
分类:
其他好文 时间:
2018-11-29 15:28:26
阅读次数:
135
import java.lang.reflect.Field; import java.util.List; /** *包名: *描述: */ /** * ObjectTest.java * * 时间:2018年11月28日 * 描述: */ public class ObjectTest { //... ...
分类:
其他好文 时间:
2018-11-29 15:15:36
阅读次数:
175
2.首先要说明一点是,对于HttpRequest对象来说,是Django自己创建的,但是HttpResponse就必须要我们自己创建。注意每个view方法都必须返回一个HttpResponse对象,HttpResonse对象也是在Django.http里面,这里我们看看之前一直用到的render函数 ...
分类:
编程语言 时间:
2018-11-29 12:34:15
阅读次数:
326
题目描述 给出一棵边带权的节点数量为n的树,初始树上所有节点都是白色。有两种操作: C x,改变节点x的颜色,即白变黑,黑变白 A,询问树中最远的两个白色节点的距离,这两个白色节点可以重合(此时距离为0)。 N (N <= 100000) Q <= 200000 时限1s 题解 如果没有修改的话,直 ...
分类:
其他好文 时间:
2018-11-29 10:57:44
阅读次数:
330