Prohibition of full table deletion 解决方法

遇到的问题 :

1、遇到这种问题,是因为mybatis-plus配置了,MybatisPlus之防止全表更新与删除插件BlockAttackInnerInterceptor 需要请跳转查看详情​​​​​​​ 

解决的方案: 

1、当配置之后需要全删除或者全修改时,可以在mapper层使用注解@InterceptorIgnore(blockAttack = "true"),列如:

@InterceptorIgnore(blockAttack = "true")
@Delete("delete from env_check_house")
int deleteEnvCheckHouseAll();

猜你喜欢

转载自blog.csdn.net/weixin_51906670/article/details/128815707
今日推荐