The method encodeToString(byte[]) is undefined for the type Base64 这是由于jar包冲突,查看lib文件夹中是否有低版本的commons-codec.jar