Try:
foo=1,2
String[] foos = properties.getProperty("foo").split(",");
More Related Contents:
- How to use Java property files?
- Java system properties and environment variables
- Read properties file outside JAR file
- Reading Properties file in Java
- How to hot-reload properties in Java EE and Spring Boot?
- Load properties file in JAR?
- How to read properties file in web application? [duplicate]
- Java Properties backslash
- How to escape the equals sign in properties files
- The value for the useBean class attribute … is invalid [duplicate]
- How to configure log4j with a properties file
- Load properties file in Servlet/JSP [duplicate]
- Autowired Environment is null
- How can I reload properties file in Spring 4 using annotations?
- JavaFX Beans Binding suddenly stops working
- How do you escape colon (:) in Properties file?
- How to read data from java properties file using Spring Boot
- With Java 7 Update 45, the System Properties no Longer Set from JNLP Tag “Property”
- How to reload properties with Spring?
- Spring Boot Externalizing properties not working
- Loading a map using Properties class
- Spring Property Injection in a final attribute @Value – Java
- A better class to update property files?
- Configure Tomcat to use properties file to load DB connection information
- How to overwrite one property in .properties without overwriting the whole file?
- Is there a way to specify a default property value in Spring XML?
- Conditional spring bean creation
- In Maven, how can I dynamically build a property value at runtime?
- How to pass Properties to jar from Powershell?
- How to test Classes with @ConfigurationProperties and @Autowired