Class FacesServletAutoConfiguration


  • @Configuration(proxyBeanMethods=false)
    @ConditionalOnClass(javax.faces.webapp.FacesServlet.class)
    @ConditionalOnWebApplication(type=SERVLET)
    @EnableConfigurationProperties(FacesServletProperties.class)
    @AutoConfigureAfter(JavaxFacesAutoConfiguration.class)
    public class FacesServletAutoConfiguration
    extends java.lang.Object
    • Constructor Detail

      • FacesServletAutoConfiguration

        public FacesServletAutoConfiguration()
    • Method Detail

      • facesServletRegistrationBean

        @Bean
        public org.springframework.boot.web.servlet.ServletRegistrationBean<javax.faces.webapp.FacesServlet> facesServletRegistrationBean​(FacesServletProperties facesServletProperties)
        This bean registers the FacesServlet.

        This ServletRegistrationBean also sets two servlet-context attributes to inform Mojarra and MyFaces about the dynamically added Servlet.

        Parameters:
        facesServletProperties - The properties for the FacesServlet-registration.
        Returns:
        A custom ServletRegistrationBean which registers the FacesServlet.