Skip to content

Instantly share code, notes, and snippets.

@bartprokop
Created November 22, 2013 22:47
Show Gist options
  • Save bartprokop/7608203 to your computer and use it in GitHub Desktop.
Save bartprokop/7608203 to your computer and use it in GitHub Desktop.
package com.appspot.bartgaepoc;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class WarmupListener implements ServletContextListener {
private static AnnotationConfigApplicationContext annotationConfigApplicationContext;
@Override
public void contextInitialized(ServletContextEvent sce) {
annotationConfigApplicationContext = new AnnotationConfigApplicationContext("com.appspot.bartgaepoc");
}
@Override
public void contextDestroyed(ServletContextEvent sce) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment