一品网
  • 首页

报错:There is no getter for property named 'distinct' in


原因分析:

selectByExample()方法传递的参数错误,应该传example类型,而不是实体类。

错误代码如下:

@Override
    public PlantGrow selectPlantGrow(PlantGrow plantGrow1) {
        List plantGrows = plantGrowMapper.selectByExample(plantGrow1);
        if (!CollectionUtils.isEmpty(plantGrows)) {
            return plantGrows.get(0);
        }
        return null;
    }

解决:改为select

bug

相关


性能测试的bug【杭州多测师】【杭州多测师_王sir】

idea调试模式下启动Springboot特别慢的原因 Method breakpoints may dramatically slo

DeBug Python代码全靠print函数?换用这个一天2K+Star的工具吧,改进版

这算是ASP.NET MVC的一个大BUG吗?

PyCharm2021使用教程 --- 7、如何使用DeBug调试程序

泛型实现中没有正确lock引用类型的一个隐藏bug分析

七牛云获取token BUG "<PLEASE APPLY YOUR ACCESS KEY>:vZFWIoYmT........"

Bugku CTF练习题---MISC---telnet

routeros关于routing filter的bug处理

通过工具dumpbin.exe快速查看dll的编译版本是Release还是Debug

手把手教你汇编 Debug

OA笔录bug

标签

一品网 冀ICP备14022925号-6