What is a good method of persisting application properties?

前端 未结 8 2022
不思量自难忘°
不思量自难忘° 2021-01-05 09:43

I have a series of application properties which all have different types.

The types could include, booleans, dates, timestamps, or strings.

I need to be abl

8条回答
  •  轮回少年
    2021-01-05 10:33

    Since you have a requirement of storing and reading various properties of different types like boolean, integers, etc. I think the java.util.prefs API is a good choice for you. It allows you to store and read various data types.

    Here's the API documentation

提交回复
热议问题