spring拦截器

先说一下自己手写一个springboot拦截器的代码 先在application启动的run中重写addInterceptions方法来拦截/coffee和/order请求 然后在performanceInteceptor继承HandlerInteception去重写里面的方法然后我们把方法中的内容进行随意编写比如afterCompletion方法我们进行获取时间差的打印   然后在通过postm
相关文章
相关标签/搜索