有这个东西,做缓存就很方便了
Map map = new HashMap();
FileOutputStream fos = new FileOutputStream("d:\\111.conf");
ObjectOutputStream o = new ObjectOutputStream(fos);
o.writeObject(map);
fos.close();
o.close();
FileInputStream fis = new FileInputStream(new File("d:\\111.conf"));
ObjectInputStream ois = new ObjectInputStream(fis);
Map map = (Map)ois.readObject();
System.out.println(map.size());
fis.close();
ois.close();
「真诚赞赏,手留余香」
标签
aframe
andrew-ng
arduino
blockchain
cgi
consul
docker
eth
ethereum
evm
feign
flask
golang
hw
java
javascript
jpa
js
k8s
kubernetes
linux
mac
machine-learning
math
mysql
nginx
op
opentcv
ops
poco
pptp
python
rd
spring
springboot
ssl
thymeleaf
type
vagrant
vpn
vue
webrtc
workflow
技术文章
新浪博客
无聊
生活
生活记录
股票
运维