bug
燕長亭
这个作者很懒,什么都没留下…
展开
-
Sonar代码扫描常见的bug
1、Save and re-use this "Random""Random" objects should be reused 创建的随机数不安全。解决方案1、sonar建议:private Random rand = SecureRandom.getInstanceStrong(); // SecureRandom is preferred to Random public void doSomethingCommon() { int rValue = this.rand.next原创 2021-07-17 17:04:21 · 10928 阅读 · 0 评论 -
无法扫描mapper接口下的方法
这个报错,报500状态,搞了我几天,心累。这是出现的两个异常```org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound state...原创 2019-01-06 22:41:18 · 1368 阅读 · 0 评论