Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions spring-core/src/main/java/com/baeldung/value/ValuesApp.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.baeldung.value;

import java.util.Arrays;
import java.util.List;

import javax.annotation.PostConstruct;
Expand Down Expand Up @@ -30,6 +31,9 @@ public class ValuesApp {
@Value("${priority}")
private String prioritySystemProperty;

@Value("${listOfValues}")
private String[] valuesArray;

@Value("#{systemProperties['priority']}")
private String spelValue;

Expand Down Expand Up @@ -60,6 +64,7 @@ public void afterInitialize() {
System.out.println(systemValue);
System.out.println(someDefault);
System.out.println(prioritySystemProperty);
System.out.println(Arrays.toString(valuesArray));
System.out.println(spelValue);
System.out.println(spelSomeDefault);
System.out.println(someBeanValue);
Expand Down