
异常
や` 紫蕾 'あ
请多指教 * ^v^ * ❀❀❀❀❀
展开
-
循环遍历的过程中删除集合中的元素 报 “ java.util.ConcurrentModificationException: null ”
今天想要在循环遍历的过程中删除集合中的元素,但是报了一个这样的bug :java.util.ConcurrentModificationException: null可以翻译成“并发修改异常”。测试时就报错了,后面也是上网查了下原因,不能用这种方式移除:原因:循环的时候,进行了删除的操作,才会报这种错,因为:迭代器的modCount和expectedModCount的值不一致;循环中是一个迭代器来进行迭代的(参考java forEach实现原理). 可以去看一下它的iterator..原创 2020-11-24 16:26:21 · 453 阅读 · 0 评论 -
java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around
报错: java.lang.ClassNotFoundException: org.aspectj.lang.annotation.Around版权声明:本文为博主原创文章,未经博主允许不得转载哦。**“错误描述:”**代码片.java.lang.IllegalStateException: Failed to load ApplicationContext at org.spri...原创 2018-11-17 23:11:30 · 603 阅读 · 1 评论 -
SpringMVC提示: " HTTP Status 405 – Method Not Allowed " Request method 'GET' not supported
SpringMVC提示: " HTTP Status 405 – Method Not Allowed " Request method ‘GET’ not supported点击超链接(提交)就会提示:HTTP Status 405 – Method Not AllowedType Status Report 如下图所示:原因很简单:由于你使用的提交方式不一致,导致报错,如下图代码块...原创 2018-11-30 11:11:29 · 3022 阅读 · 0 评论