java - where to place suggested code -


i newbie spring. have spring project want run code after finishes startup. there sol'n offered here:

suggested solution

specifically, try:

 @eventlistener(applicationreadyevent.class) public void dosomethingafterstartup() { system.out.println("hello world, have started up"); } 

my question in project put code? (there bunch of code files in various directories)


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

.net - Generate assembly with Roslyn -

batch file - filebot superstrict script: need tiny video sample or other solution -