Skip to content

Instantly share code, notes, and snippets.

@alexandre-touret
Last active April 10, 2018 13:51
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 alexandre-touret/40f3cfa13f5947aa922fc1f796668c59 to your computer and use it in GitHub Desktop.
Save alexandre-touret/40f3cfa13f5947aa922fc1f796668c59 to your computer and use it in GitHub Desktop.
@Component
public class DbApplication {
public static void main(String[] args) {
try {
ApplicationContext applicationContext = new AnnotationConfigApplicationContext(ApplicationConfig.class);
Main main = new Main();
main.addRouteBuilder(applicationContext.getBean(DbRouteBuilder.class));
main.run();
} catch (Exception e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment