List of usage examples for org.springframework.boot.web.servlet.context AnnotationConfigServletWebServerApplicationContext AnnotationConfigServletWebServerApplicationContext
public AnnotationConfigServletWebServerApplicationContext()
From source file:org.springframework.boot.actuate.autoconfigure.metrics.PublicMetricsAutoConfigurationTests.java
private void loadWeb(Class<?>... config) { AnnotationConfigServletWebServerApplicationContext context = new AnnotationConfigServletWebServerApplicationContext(); if (config.length > 0) { context.register(config);//ww w .ja va 2 s . com } context.register(DataSourcePoolMetadataProvidersConfiguration.class, CacheStatisticsAutoConfiguration.class, PublicMetricsAutoConfiguration.class, MockServletWebServerFactory.class); context.refresh(); this.context = context; }