Skip to content

Instantly share code, notes, and snippets.

@zzzfree
Created February 28, 2013 22:17
Show Gist options
  • Save zzzfree/5060612 to your computer and use it in GitHub Desktop.
Save zzzfree/5060612 to your computer and use it in GitHub Desktop.
public static WebApplicationContext getCurrentWebApplicationContext() {
return (WebApplicationContext) currentContextPerThread.get(Thread.currentThread().getContextClassLoader());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment