Skip to content

Instantly share code, notes, and snippets.

@justinm
Created March 17, 2015 07:58
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 justinm/114ba7d3416b1f409353 to your computer and use it in GitHub Desktop.
Save justinm/114ba7d3416b1f409353 to your computer and use it in GitHub Desktop.
import org.springframework.context.annotation.Configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
@Configuration
public class AppConfig {
@Bean
public Initializer initializer() {
return new Initializer();
}
}
public class Initializer() {
public Initializer() {
// Run some init code
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment