Springboot+MongoDB添加数据时会自带_class字段
_class字段作用 帮助映射子类,为了方便处理Pojo中存在继承的情况,增加系统的扩展性 去除_class字段 新增mongodb的配置类,配置mappingMongoConverter,配置类网上很...
每一篇,都是探索的痕迹。
_class字段作用 帮助映射子类,为了方便处理Pojo中存在继承的情况,增加系统的扩展性 去除_class字段 新增mongodb的配置类,配置mappingMongoConverter,配置类网上很...
原因 传入参数为List<String>不能用lists != '' 判断 解决 将lists != ‘’ 的判断去掉或者改为lists .size>0 其他 如果是Integer...
依赖 org.springframework spring-mock 2.0.8 com.alibaba fastjson 1.2.62 service实现 public RestResponseBod...
springboot将对象输出成文件流传到前端 依赖Controllerservice运行 依赖 cn.hutool hutool-all 5.7.20 Controller /** ...