SpringBoot使用自定義Mybatis攔截器

開發過程中經常回需要對要執行的sql加以自定義處理,比如分頁,計數等。通過 MyBatis 提供的強大機制,使用插件是非常簡單的,只需實現 Interceptor 接口,並指定想要攔截的方法簽名即可。 @Intercepts({@Signature(type = Executor.class,method = "query",args = {MappedStatement.class,Object
相關文章
相關標籤/搜索