public interface PoetHandlerInterceptor
extends org.springframework.core.Ordered
PoetAnnexContext 的所有方法执行之前调用。 方便做鉴权、限流等
可自己定义运行时异常抛出, 用以终止整个流程| 限定符和类型 | 接口和说明 |
|---|---|
static class |
PoetHandlerInterceptor.Mode |
boolean preHandle(PoetHandlerInterceptor.Mode mode, String name, @Nullable String module)
mode - 操作模式 访问/保存/删除name - 附件名 全局唯一. 为 PoetAnnexNameGenerator 生成的名字module - 模块名, 不一定会有com.skypyb.poet.core.exception.AnnexAccessExceptionCopyright © 2022. All rights reserved.