public interface Interceptor
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
afterExecution(Statement statement)
在 SQL 执行后调用该方法
|
default boolean |
beforeExecution(Statement statement)
在 SQL 执行前调用该方法
|
default boolean beforeExecution(Statement statement) throws SQLException
statement - Statementfalse 表示不再往下执行SQLException - 异常default void afterExecution(Statement statement) throws SQLException
statement - StatementSQLException - 异常Copyright © 2019. All rights reserved.