![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
报错
路途芬芳
这个作者很懒,什么都没留下…
展开
-
centos7:This system is not registered with an entitlement server. You can use subscription-manager
centos7使用yum install时报This system is not registered with an entitlement server. You can use subscription-manager to register. “此系统未在Subscription Management中注册。您可以使用subscription-manager进行注册”… 解决方法: vim /etc/yum/pluginconf.d/subscription-manager.conf [main原创 2021-10-28 13:29:35 · 898 阅读 · 0 评论 -
map.get(key)出现NPE问题以及解决方案
平时使用Map时都会给定里面的元素类型,在拿到数据后用Optional判空处理,比如以下形式: String value = Optional.ofNullable(mapData.get("xxx")).orElse(""); 一般情况下没出现问题,但是今天从mongodb拿到数据后,代码走到map.get(key)报了NPE,一开始让人有点懵逼,我做了处理啊,我是谁,我在哪? 后边才发现拿数据的接口返回的是List<Map>类型,Map并没有指定类型,但是我获取其中对应的map原创 2021-08-16 18:09:20 · 496 阅读 · 0 评论 -
无法找到元素 'mvc:interceptors' 的声明等类似的解决方法
在学习SpringMVC的时候,xml声明给我造成了困扰,看别人的博客直接把别人的声明拿回来,还是不行,后边一想,感觉应该是版本号不对。声明信息如下: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...原创 2019-09-28 13:58:51 · 1467 阅读 · 0 评论