首页 > TAG信息列表 > getOne

NPE解决方案

// 后台设置的渠道 String channelNo = channelDao.getOne().getChannelNo(); // 第三方拉取的数据 List<ThirdData> thirdDataList = httpClientUtils.getThirdDatas(DateUtils.today()); // 匹配过滤 thirdDataList.stream().filter(o ->channelNo.equals(o.getChannelNo())).c

mybatisplus exception:One record is expected, but the query result is multiple records

mybatisplus exception:One record is expected, but the query result is multiple records 原因:使用getOne(queryWrapper),查出了多条数据 解决方案:如果想取一条并不想报错时使用getOne(queryWrapper,false) 源码: public interface IService<T> {     /**     * 根据 Wr

线上问题解决!

1.Thread pool is EXHAUSTED! (原因: 并发状态下,线程池不够用)可以查这个网址: https://www.pianshen.com/search解决:增加dubbo的线程数<dubbo:protocol name="dubbo" port="-1" dispatcher="message" threadpool="cached" threads="${cdc_mbhk_loyalty