Apache Base64工具注意事项 2021年05月08日 0 主要就是两种写法: Base64.encodeBase64String(byte[]) new String(Base64.encodeBase64(byte[])) 主要问题就是上面写法会有换行符,下面没有换行符。