java - 内存中的对象图序列化
问题描述
假设我将这个对象实例化为示例:
BasicAWSCredentials credentials =
new BasicAWSCredentials(objectStoreAccessKey, objectStoreSecretKey);
AmazonS3 s3client = AmazonS3ClientBuilder
.standard()
.withCredentials(new AWSStaticCredentialsProvider(credentials))
.withEndpointConfiguration(
new AwsClientBuilder.EndpointConfiguration(objectStoreEndpoint, objectStoreRegion))
.build();
AmazonS3本身(和其他类似的客户端)是不可序列化的,有没有办法将其完整的对象图序列化,因为它可以在应用程序和/或其他进程的不同实例中使用。
解决方案
推荐阅读
- laravel - 带有 Laravel 问题的 Apache 别名
- android - Facebook 密钥哈希生成错误格式
- ios - 使用 Visual Studio + Cordova 的 Remotebuilderror(错误代码 65)
- xamarin - 将设备重新连接到 USB 后,Xamarin 构建非常缓慢
- database - 在 Oracle 中为特定用户设置新密码时需要旧密码
- post - 使用 POST 方法在 IFrame 中渲染 VueJs 页面
- php - 当用户再次登录 WooCommerce 时,从购物车中删除以前的项目
- c++ - 可变参数模板构造函数扩展中出现意外的 nullptr
- python - 如何使用 Python 从图像中裁剪椭圆区域
- python - 如何从数据框的子集中随机选择元素?