Java 类org.springframework.boot.context.embedded.RegistrationBean 实例源码

项目:contestparser    文件:JerseyAutoConfiguration.java   
private void addInitParameters(RegistrationBean registration) {
    for (Entry<String, String> entry : this.jersey.getInit().entrySet()) {
        registration.addInitParameter(entry.getKey(), entry.getValue());
    }
}
项目:vaangular    文件:VaangularApplication.java   
@Bean
public RegistrationBean vaangularServlet(final ApplicationContext context)
{
    final Servlet servlet = new VaangularServlet();
    return new ServletRegistrationBean(servlet, "/*");
}
项目:JavascriptPlusForVaadin    文件:JavaScriptPlusDemoApplication.java   
@Bean
public RegistrationBean vaangularServlet(final ApplicationContext context)
{
    final Servlet servlet = new JavaScriptPlusDemoServlet();
    return new ServletRegistrationBean(servlet, "/*");
}