Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Component
public class TestData extends FileReader {
@Value("${testData.users.file}")
private String usersFile;
public List<User> getUsers() {
Gson gson = new Gson();
return Arrays.asList(gson.fromJson(getFileAsString(usersFile), User[].class));
}
}
@LenarBad

This comment has been minimized.

Copy link
Owner Author

LenarBad commented Dec 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.