失踪 org.apache.commons.collections.CollectionUtils
missing org.apache.commons.collections.CollectionUtils
我导入 commons-lang3 如下:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
但是我在包org.apache.commons.lang3中找不到子包集合
你不会在这个罐子里找到它。也许您正在寻找 commons-collections 神器:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>
或
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
在这两个文件中,您都会找到 class CollectionUtils。
但是,对于你的情况,我认为版本 3.2.2 更适合。
我导入 commons-lang3 如下:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
但是我在包org.apache.commons.lang3中找不到子包集合
你不会在这个罐子里找到它。也许您正在寻找 commons-collections 神器:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>
或
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
在这两个文件中,您都会找到 class CollectionUtils。 但是,对于你的情况,我认为版本 3.2.2 更适合。