一.问题由来 自己在查看日志时发现日志中打印了一行错误信息为: 组装已经放养的宠物数据异常--->Mapper method 'applets.user.mapper.xxxMapper.xxxmyRank attempted to return null from a method with a primitive return type (int). 意思很好理解,就是在某个mapper文件中的xxxmyRank 这个查询方法返回一个null,可是却需要返回一个int类型的数,因此报错. 二
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源配置的原因,
zepto: $.isEmptyObject = function(obj) { var name for (name in obj) return false return true } $.isEmptyObject({})//true /* * 检测对象是否是空对象(不包含任何可读属性). * 方法既检测对象本身的属性,也检测从原型继承的属性(因此没有使hasOwnProperty). */ function isEmpty(obj) { for (var name in o
将 数据库表 映射成hibernate 实体类时 将number --- double 如果数据库中number 为空,查找数据时将报错 Can not set double field ***** to null value double 基本类型 不能为空 Double 对象类型 可以为空 所以需要 number --- Double
现象: 1.报错:There is a cycle in the hierarchy! 2.返回至前台的json不完整,字段丢失. 错误原因: eg:entity1的属性有list<entitiy2>,entity2的字段中也含有entity1,即常见的双向关联;引发的死循环 解决方案: 1.重写一个vo用于传输json 2.@JsonIgnore