@Configuration
public class WebConfigurer
extends java.lang.Object
implements org.springframework.boot.web.servlet.ServletContextInitializer, org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
Constructor and Description |
---|
WebConfigurer(org.springframework.core.env.Environment env,
io.github.jhipster.config.JHipsterProperties jHipsterProperties) |
Modifier and Type | Method and Description |
---|---|
org.springframework.web.filter.CorsFilter |
corsFilter() |
void |
customize(org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer container)
Customize the Servlet engine: Mime types, the document root, the cache.
|
void |
onStartup(javax.servlet.ServletContext servletContext) |
void |
setMetricRegistry(com.codahale.metrics.MetricRegistry metricRegistry) |
public WebConfigurer(org.springframework.core.env.Environment env, io.github.jhipster.config.JHipsterProperties jHipsterProperties)
public void onStartup(javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException
onStartup
in interface org.springframework.boot.web.servlet.ServletContextInitializer
javax.servlet.ServletException
public void customize(org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer container)
customize
in interface org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer
@Bean public org.springframework.web.filter.CorsFilter corsFilter()
@Autowired(required=false) public void setMetricRegistry(com.codahale.metrics.MetricRegistry metricRegistry)
Copyright © 2017 Osgiliath. All rights reserved.