How do I specify values in a properties file so they can be retrieved using ResourceBundle#getStringArray?

后端 未结 9 1441
失恋的感觉
失恋的感觉 2020-12-03 06:56

I am trying to use ResourceBundle#getStringArray to retrieve a String[] from a properties file. The description of this method in the documentation

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 07:31

    You can use Commons Configuration, which has methods getList and getStringArray that allow you to retrieve a list of comma separated strings.

提交回复
热议问题