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

后端 未结 9 1442
失恋的感觉
失恋的感觉 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:17

    key=value1;value2;value3
    
    String[] toArray = rs.getString("key").split(";");
    

提交回复
热议问题