There is no getter for property named 'ew' in 'class com.baomidou.mybatisplus.core.conditions.query.QueryWrapper'
QueryWrapper<Xzjg>?queryWrapper?=?new?QueryWrapper<>(); queryWrapper.select("dlmc","dlmm"); List<Xzjg>?list?=?xzjgMapper.selectList(queryWrapper); list.forEach(System.out::println);
居然報錯了???? ew又是什么?
2020-05-05
同學,你使用的MP是什么版本?selectList這個方法是直接使用的BaseMapper中的,還是自定義的,目前這么看,我看不出問題,方便把代碼發(fā)到github或者gitee上,我?guī)湍阏{試一下。
2020-04-30
你好,你只查詢了"dlmc","dlmm"兩列。但是打印Xzjg時,會將Xzjg的其他屬性設置為null??聪履愕膶嶓w類Xzjg是否有ew,并且沒有get方法