public class ECOrderException : Exception { //第一种类型: throw new ECOrderException { ErrorCode = "X1008-06", TransMessage = "SNs格式错误" }; public ECOrderException() : base() { } public virtual string ErrorCode { get; set; } public virtual s
Spring interceptor拦截器配置 Spring mvc的拦截器是通过handlerinterceptor来实现的 实现方式: 1.自定义一个类实现Spring的handlerinterceptor接口或者实现handlerinterceptor接口的类,比如Spring已经提供了实现的handlerinterceptorAdapter 2.实现Spring的WebRequestinterceptor接口 或者继承已经实现webRequestinterceptor类 (一)实现han