拦截器:
@Intercepts(
value = {
@Signature(type = Executor.class, method = "update", args = {MappedStatement.class, Object.class}),
@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class,
RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class}),
@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class,
RowBounds.class, ResultHandler.class})
}
)
dao:
1-可以进拦截器 Object get(String code)
2-不可以进拦截器 Object get(@param("code")String code)
在dao层的方法用了@param的话就进入不了拦截器了