背景:
项目中需要使用Base64, 进行加密,发现jdk中的Base64无encodeBase64和encodeBase64String,于是发现apache的commons-codec.jar包,下面是maven/gradle导入该包的官网连接。

官网连接
https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec/1.8
jar报下载:
http://commons.apache.org/proper/commons-codec/download_codec.cgi

Maven

<!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec -->
<dependency>
    <groupId>org.apache.directory.studio</groupId>
    <artifactId>org.apache.commons.codec</artifactId>
    <version>1.8</version>
</dependency>

Gradle

// https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec
compile group: 'org.apache.directory.studio', name: 'org.apache.commons.codec', version: '1.8'
Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐