We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5.7
官网的文档示例写法是可以作用于非mapper的方法上: 该注解用于指定在执行 MyBatis-Plus 的某个方法时,是否忽略特定的拦截器。MyBatis-Plus 提供了多个拦截器,用于实现如分页、逻辑删除、多租户等功能。通过使用@InterceptorIgnore注解,开发者可以控制哪些拦截器在执行特定方法时应该被忽略。
@service public class UserService { @Autowired private UserMapper userMapper;
@InterceptorIgnore(tenantLine = "1") // 忽略多租户拦截器 public List<User> selectUsers() { return userMapper.selectList(null); }
} 但是实测只能作用于mapper的方法或类,是我的使用问题吗
No response
The text was updated successfully, but these errors were encountered:
文档有问题稍后会修正,只能支持mapper
Sorry, something went wrong.
No branches or pull requests
确认
当前程序版本
3.5.7
问题描述
官网的文档示例写法是可以作用于非mapper的方法上:
该注解用于指定在执行 MyBatis-Plus 的某个方法时,是否忽略特定的拦截器。MyBatis-Plus 提供了多个拦截器,用于实现如分页、逻辑删除、多租户等功能。通过使用@InterceptorIgnore注解,开发者可以控制哪些拦截器在执行特定方法时应该被忽略。
@service
public class UserService {
@Autowired
private UserMapper userMapper;
}
但是实测只能作用于mapper的方法或类,是我的使用问题吗
详细堆栈日志
No response
The text was updated successfully, but these errors were encountered: