mybatisplus报错
Error querying database. Cause: com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: Failed to process, please exclude the tableName or statementId.
原因是因为mybatisplus不识别sql查询语句中的返回使用函数,如:max(),count()等,

解决办法,在mapper函数上加上如下配置:
@SqlParser(filter = true)
在这里插入图片描述

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐