Intellij-出现Module ** must not contain source root **. The root already belongs to module **这类错误的解决方法
摘要:
出现这个问题的原因是,多模块Maven项目,parent目录不能不能有src的code。找到parent 的 Source Folders看看是否把module的给加载进来了。删掉就可以了。 参考: 【1】IDEA出现Module ** must not contain source root ** 阅读全文
posted @ 2020-02-06 08:50
寻找风口的猪
阅读(12026)
评论(1)
推荐(1)
摘要:
用findAny()寻找List中符合要求的数据 这段代码如果找不到数据就会抛异常。 A a = bList().stream().filter(b -> "test".equals(b.getName())).findAny().get(); 这段代码如果找不到数据会返回null。orElse() 阅读全文
posted @ 2020-02-06 08:43
寻找风口的猪
阅读(19804)
评论(0)
推荐(2)

浙公网安备 33010602011771号