Package org.springframework.boot.context.embedded

Examples of org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext.register()


    childContext.setId(this.applicationContext.getId() + ":management");

    // Register the ManagementServerChildContextConfiguration first followed
    // by various specific AutoConfiguration classes. NOTE: The child context
    // is intentionally not completely auto-configured.
    childContext.register(EndpointWebMvcChildContextConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class,
        EmbeddedServletContainerAutoConfiguration.class,
        DispatcherServletAutoConfiguration.class);

    // Ensure close on the parent also closes the child
View Full Code Here


  @Test
  @SuppressWarnings("unchecked")
  public void deviceResolverHandlerInterceptorRegistered() throws Exception {
    AnnotationConfigEmbeddedWebApplicationContext context = new AnnotationConfigEmbeddedWebApplicationContext();
    context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        DeviceResolverAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class);
    context.refresh();
    RequestMappingHandlerMapping mapping = (RequestMappingHandlerMapping) context
View Full Code Here

  @Test
  @SuppressWarnings("unchecked")
  public void sitePreferenceHandlerInterceptorRegistered() throws Exception {
    AnnotationConfigEmbeddedWebApplicationContext context = new AnnotationConfigEmbeddedWebApplicationContext();
    context.register(Config.class, WebMvcAutoConfiguration.class,
        HttpMessageConvertersAutoConfiguration.class,
        SitePreferenceAutoConfiguration.class,
        PropertyPlaceholderAutoConfiguration.class);
    context.refresh();
    RequestMappingHandlerMapping mapping = (RequestMappingHandlerMapping) context
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.