Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@donchan922
Last active August 20, 2019 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donchan922/36d5fce1025839a99e46d869bf129c50 to your computer and use it in GitHub Desktop.
Save donchan922/36d5fce1025839a99e46d869bf129c50 to your computer and use it in GitHub Desktop.
@Transactional(readOnly = true)
@Override
public void run(String... args) throws IOException {
try (Cursor<City> cities = cityMapper.findAll()) {
for (City city : cities) {
System.out.println(city.toString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment