use of ru.xpoft.vaadin.SpringVaadinServlet in project vaadin-samples by xpoft.
the class Application method servletRegistrationBean.
@Bean
public ServletRegistrationBean servletRegistrationBean() {
ServletRegistrationBean registration = new ServletRegistrationBean(new SpringVaadinServlet());
// Servlet. init-param
Map<String, String> params = new HashMap<String, String>();
params.put("beanName", "myUI");
registration.setInitParameters(params);
return registration;
}
Aggregations