8月21 从List中remove掉元素 | springboot 配置mongodb 连接池 | 配置https

 

一、从List中remove掉元素

            Iterator<ConditionBean_item> it = and.iterator();
            while(it.hasNext()){
                ConditionBean_item item = it.next();
                if("".equals(item.getValue()) || null == item.getValue()){
                    it.remove();
                }
            }

用Iterator 的方式比较好,如果用for循环会有问题

 

二、异常

Caused by: org.springframework.data.mapping.model.MappingException: Ambiguous field mapping detected! 
Both private java.lang.String cn.com.connext.commenservice.entity.mdm.ItemMaster.imgPath and

private java.lang.String cn.com.connext.mdm_module.vo.ItemListVo.imgPath map to the same field name imgPath!
Disambiguate using @Field annotation!

这是说属性重复了,

ItemMaster 和 ItemListVo 重复了imgPath
因为我是
ItemListVo 去继承了 ItemMaster ,结果master里有imgPath,Vo里面我又添加了imgPath
参考:
https://blog.csdn.net/k_c123456/article/details/78465825

三、 springboot 配置mongodb 连接池
https://blog.csdn.net/j3t9z7h/article/details/79621164
https://blog.csdn.net/qq_35337467/article/details/81359342

四、bean copy
https://blog.csdn.net/yangschfly/article/details/68490325

五、配置https
https://www.chinassl.net/ssltools/convert-ssl.html

 



六、新增用户设置密码
创建用户ls
 
sudo useradd ls
 
#为ls用户设置密码
 
sudo passwd ls



 

 

转载于:https://www.cnblogs.com/lyon91/p/9509320.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值