Java 类org.springframework.boot.web.servlet.RegistrationBean 实例源码

项目:micro-service-framework    文件:WebConfiguration.java   
/**
 * Druid监控页面配置
 *
 * @return
 */
@Bean
public RegistrationBean getDruidStatViewServlet() {
    StatViewServlet servlet = new StatViewServlet();
    ServletRegistrationBean bean = new ServletRegistrationBean();
    bean.setServlet(servlet);
    bean.addUrlMappings("/druid/*");
    bean.setLoadOnStartup(1);
    bean.addInitParameter("resetEnable", "false");
    return bean;
}
项目:micro-service-framework    文件:WebConfiguration.java   
/**
 * Druid监控页面配置
 *
 * @return
 */
@Bean
public RegistrationBean getDruidStatViewServlet() {
    StatViewServlet servlet = new StatViewServlet();
    ServletRegistrationBean bean = new ServletRegistrationBean();
    bean.setServlet(servlet);
    bean.addUrlMappings("/druid/*");
    bean.setLoadOnStartup(1);
    bean.addInitParameter("resetEnable", "false");
    return bean;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:JerseyAutoConfiguration.java   
private void addInitParameters(RegistrationBean registration) {
    for (Entry<String, String> entry : this.jersey.getInit().entrySet()) {
        registration.addInitParameter(entry.getKey(), entry.getValue());
    }
}
项目:spring-boot-concourse    文件:JerseyAutoConfiguration.java   
private void addInitParameters(RegistrationBean registration) {
    for (Entry<String, String> entry : this.jersey.getInit().entrySet()) {
        registration.addInitParameter(entry.getKey(), entry.getValue());
    }
}