contains dots but no replacement was configured!Make sure map keys don't contain dots in the first p
来源:互联网 发布:bt下载端口阻塞 编辑:程序博客网 时间:2024/06/08 00:16
Map key 127.0.0.1:44444 contains dots but no replacement was configured! Make sure map keys don't contain dots in the first place or configure an appropriate replacement!
在使用mongo db的时候保存数据时候,出现了如上异常。
湿胸我就简单记录下我是怎么解决这个问题的。以及问题的原因。因为我也不了解具体原理。
问题原因:
就字面意思看,他说的是map的key包含了 点。
那我在使用的过程中,准备往mongo db里面存一个对象,但是这个对象有个属性是map类型的,而且这个map的key是以ip+port的形式来当key的,那么就发生上面的错误,也就是提示的说我的map的key里面是有点的,然后在保存的时候,就保存异常了。
然后我就把map的key里面的点给替换掉,再保存就OK啦。
具体 数据格式看下面的截图,大概就可以 明白了吧。
,他说的map的key就是这个位置,把点替换,就OK了。
我在stackoverflow上看到,还可以怎么修改配置来着,那个我就没细看了。
就只知道怎么把问题解决先。
这个吧,就是你遇到了就很有用,要是没遇到呢,还真就丁点儿用没有。。。
下面是别人这么配置的,我没测试过。观众可以参考一下。
<bean id="mongoMoxydomainConverter" class="org.springframework.data.mongodb.core.convert.MappingMongoConverter"> <constructor-arg index="0" ref="mongoDbFactory" /> <constructor-arg index="1"> <bean class="org.springframework.data.mongodb.core.mapping.MongoMappingContext"/ </constructor-arg> <property name="mapKeyDotReplacement" value="\\+"/></bean>
今天儿童节哟。。
阅读全文
2 0
- contains dots but no replacement was configured!Make sure map keys don't contain dots in the first p
- Map key contains dots but no replacement was configured! Make sure map keys don't contain dots in th
- ADB server didn't ACK && make sure the plugin is properly configured
- What does the three dots in react do?
- Don't in the
- About me --- Connecting the dots
- make sure the plugin is properly configured!报错解决方案
- zunionstore异常:CROSSSLOT Keys in request don't hash to the same slot
- 关于小圆点的制作(About how to make the dots)(-)
- USTC 1281 Unhappy dots STL map
- PCL and ParaView -- Connecting the Dots
- NWERC 2017(Connect the Dots-几何+搜索)
- what does the three dots in “doInBackground(URL… urls)” mean?
- android 关于Make sure the plugin is properly configured问题的解决办法
- Adb failed to restart! Make sure the plugin is properly configured.
- android 关于Make sure the plugin is properly configured问题的解决办法
- Adb failed to restart! Make sure the plugin is properly configured. .
- android 关于Make sure the plugin is properly configured问题的解决办法
- CSS实现三栏布局和垂直居中
- linux启动流程
- 国家的命运·《看懂世界格局的一本书》
- 读写锁
- Hibernate中的6种主键生成策略和相应特点
- contains dots but no replacement was configured!Make sure map keys don't contain dots in the first p
- 一致性算法之Quorum NRW
- PHP里10个鲜为人知但却非常有用的函数
- ViewPager动态开启和禁用左右滑动功能
- mooc c语言第八周编程
- VS2010 C#环境变量自动配置及运行CMD命令不显示结果
- RecyclerView下拉刷新和加载更多
- 剑指Offer-22
- CATransition 简单使用(转场动画)