配置文件:
[a1]
type = s3
provider = Minio
env_auth = false
access_key_id =
secret_access_key =
region = cn-east-1
endpoint =
location_constraint =
server_side_encryption =
[a2]
type = s3
provider = Minio
env_auth = false
access_key_id =
secret_access_key =
region = cn-east-1
endpoint =
location_constraint =
server_side_encryption =
想使用 java 读取这种格式的文件然后修改重新写入,不知怎么解析
1
rphoho 2021-02-20 10:56:40 +08:00
ini
|
2
hello2060 2021-02-20 10:58:27 +08:00 via iPhone
[x]标志一个新配置的开始,每行读出来 split(“=“)不就行了
|
3
nutting 2021-02-20 11:10:09 +08:00
如果这是标准 ini 的规范,应该有现成的 jar 包吧
|
4
zerofancy 2021-02-20 11:28:29 +08:00
|
5
wakzz 2021-02-20 15:03:42 +08:00
楼上正解,ini
|