Base64.decodeBase64() java.lang.IllegalStateException: Impossible modulus [1]
我遇到的情况是包引错了,由于一些操作,idea自动引入了别的包
正确的包是
import org.apache.commons.codec.binary.Base64;
依赖
依赖
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.10</version>
</dependency>

浙公网安备 33010602011771号