Search in sources :

Example 1 with MyFacesServlet

use of org.apache.myfaces.webapp.MyFacesServlet in project JavaExercises by biblelamp.

the class JsfConfig method facesServletRegistration.

@Bean
public ServletRegistrationBean facesServletRegistration() {
    ServletRegistrationBean servletRegistrationBean = new JsfServletRegistrationBean(new MyFacesServlet());
    servletRegistrationBean.setLoadOnStartup(1);
    return servletRegistrationBean;
}
Also used : MyFacesServlet(org.apache.myfaces.webapp.MyFacesServlet) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) ServletRegistrationBean(org.springframework.boot.context.embedded.ServletRegistrationBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

MyFacesServlet (org.apache.myfaces.webapp.MyFacesServlet)1 ServletRegistrationBean (org.springframework.boot.context.embedded.ServletRegistrationBean)1 Bean (org.springframework.context.annotation.Bean)1