
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
今天开发联调的时候发现了这样一个问题:Mybatis的sql查询语句select一些字段,resultType返回类型是Map,用sql在数据库中执行有返回,不过值是null,但是用postman测试接口数据返回的时候,这个字段却不见了,导致前端接收字段Key和Value丢失。根据业务需求,我们想返回所有字段,包括空值字段。查阅资料,需要用到callSettersOnNulls的相关配置。方法一:
Constructor threw exception; nested exception is java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType/*** 获取泛型T的class类对象* @return 泛型T的class类对象*/public Cl
解决方案:commit(提交)后撤回push(推送)后撤回1、打开终端,查看提交日志 > git log2、找到本地存放代码的位置,右击鼠标,选择【Git Bash Here】3、执行git reset --hard 【版本号】4、执行git push origin 【分支如:dev】 --force以上步骤详情可见下面这篇文章,同理。相关文章 > IDEA git push(推送)后
SpringBoot项目启动报错java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been ex
SpringBoot项目启动报错java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been ex
不需要密码或忘记密码如何卸载趋势安全软件Trend Micro OfficeScan Agent
Java实现方法接口入参同时包含文件、字段和对象等多种类型。HTTP请求返回415状态,Content type ‘application/octet-stream‘ not supported错误。
解决方案:1、进入node_modules,删除node-gyp2、执行npm i -g node-gyp3、删除node_modules4、执行npm i -d完成!
SpringBoot项目启动报错java.io.IOException: The server sockets created using the LocalRMIServerSocketFactory only accept connections from clients running on the host where the RMI remote objects have been ex
查看MongoDB数据库,集合里的主键_id有值。但是开发时Java代码中使用mongoTemplate.findById(id, 实体.class, COLLECTION_NAME)和mongoTemplate.findOne(query, 实体.class)时,返回的数据为null。数据库执行查询语句db.collection.find({"_id":2021080400123}) 发现也返回







