一.问题由来 自己在查看日志时发现日志中打印了一行错误信息为: 组装已经放养的宠物数据异常--->Mapper method 'applets.user.mapper.xxxMapper.xxxmyRank attempted to return null from a method with a primitive return type (int). 意思很好理解,就是在某个mapper文件中的xxxmyRank 这个查询方法返回一个null,可是却需要返回一个int类型的数,因此报错. 二…
select sum(deposit_amount)from tb_commission_ib_day mysql查询时报异常: attempted to return null from a method with a primitive return type 是因为查询时结果是 null, 需要给默认值 select IFNULL(sum(deposit_amount),0) from tb_commission_ib_day…
dotnetcore ef 调用多个数据库时用户命令执行操作报错 1.多个DbContext 时报错: 报错: More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands. 解决办法: dotnet ef migrations ad…
安装hue时,make apps 编译报错 :"Error: must have python development packages for 2.6 or 2.7. Could not find Python.h. Please install python2.6-devel or python2.7-devel". Stop. 原因:排查最终原因是,python等某些依赖未安装/未安装好. 依赖未安装的原因,是配置了本地yum源. 解决方法: 可能是本地yum源配置的原因,…