What is the simplest way to do settings files in Java?

前端 未结 8 1480
清歌不尽
清歌不尽 2021-01-03 05:47

Obviously enough, I want to avoid hardcoding paths and such into my application, and as a result, I\'d like to make a settings file that will store simple things like string

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-03 06:24

    You could use properties files which are manipulated with the java.util.Properties class.

提交回复
热议问题