Search in sources :

Example 1 with SpringVaadinServlet

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;
}
Also used : HashMap(java.util.HashMap) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) SpringVaadinServlet(ru.xpoft.vaadin.SpringVaadinServlet) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

HashMap (java.util.HashMap)1 ServletRegistrationBean (org.springframework.boot.context.embedded.ServletRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1 SpringVaadinServlet (ru.xpoft.vaadin.SpringVaadinServlet)1