类 WriteInterceptor

  • 所有已实现的接口:
    org.apache.ibatis.plugin.Interceptor

    @Intercepts(@Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="prepare",args={java.sql.Connection.class,java.lang.Integer.class}))
    public class WriteInterceptor
    extends com.baomidou.mybatisplus.extension.handlers.AbstractSqlParserHandler
    implements org.apache.ibatis.plugin.Interceptor
    写权限控制 拦截器 该拦截器常用于演示环境
    作者:
    lym
    • 构造器详细资料

      • WriteInterceptor

        public WriteInterceptor()
      • WriteInterceptor

        public WriteInterceptor​(String[] allowList,
                                String[] importantDataList,
                                String[] allowIpList)
    • 方法详细资料

      • intercept

        public Object intercept​(org.apache.ibatis.plugin.Invocation invocation)
                         throws Throwable
        指定者:
        intercept 在接口中 org.apache.ibatis.plugin.Interceptor
        抛出:
        Throwable
      • plugin

        public Object plugin​(Object target)
        生成拦截对象的代理
        指定者:
        plugin 在接口中 org.apache.ibatis.plugin.Interceptor
        参数:
        target - 目标对象
        返回:
        代理对象
      • setProperties

        public void setProperties​(Properties properties)
        mybatis配置的属性
        指定者:
        setProperties 在接口中 org.apache.ibatis.plugin.Interceptor
        参数:
        properties - mybatis配置的属性