logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

npm i -D miniprogram-api-typings @uni-helper/uni-app-types报错改用pnpm解决

【代码】npm i -D miniprogram-api-typings @uni-helper/uni-app-types报错改用pnpm解决。

文章图片
#npm#uni-app#前端
@InterceptorIgnore(illegalSql = “true“, tenantLine = “true“)解决MyBaits ParseException unexpected toke

此时在mapper方法上方加上注解@InterceptorIgnore(tenantLine = "true")即可避开报错,如果不写注解,方法仍然可以执行,只是日志会提示错误,实际不影响程序运行。在MyBatis的xml中如果写了UNION比较复杂的查询,有时候报错optimize this sql to a count sql has exception。

文章图片
#java#开发语言
@InterceptorIgnore(illegalSql = “true“, tenantLine = “true“)解决MyBaits ParseException unexpected toke

此时在mapper方法上方加上注解@InterceptorIgnore(tenantLine = "true")即可避开报错,如果不写注解,方法仍然可以执行,只是日志会提示错误,实际不影响程序运行。在MyBatis的xml中如果写了UNION比较复杂的查询,有时候报错optimize this sql to a count sql has exception。

文章图片
#java#开发语言
暂无文章信息