Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final AnnotationConfigEmbeddedWebApplicationContext childContext = new AnnotationConfigEmbeddedWebApplicationContext();
- childContext.setParent(this.applicationContext);
- childContext.setId(this.applicationContext.getId() + ":one");
- childContext.register(
- PropertyPlaceholderAutoConfiguration.class,
- EmbeddedServletContainerAutoConfiguration.class,
- DispatcherServletAutoConfiguration.class);
- childContext.scan("com.patsnap.serviceOne");
- ConfigFileApplicationListener listener = new ConfigFileApplicationListener();
- childContext.addApplicationListener(listener);
- childContext.refresh();
Add Comment
Please, Sign In to add comment