@ManagedBean not initialize with jsf + spring boot
<p>I am trying to build simple backoffice app. I choose to use jsf(PrimeFaces) because of rich ui components that doesn't require any Front end developer(The look doesn't matter it just to perform actions on our main system).</p>

<p>The issue that i have is that @ManagedBean doesn't work at all.. It just doesn't consider it and does not perform auto scan.</p>

<p>In case i put the bean in faces-config.xml it works.. Anyone has an idea?</p>

<p>The config file is:</p>

<pre><code>@Bean
public FacesServlet facesServlet() {
    return new FacesServlet();
}

@Bean
public ServletRegistrationBean facesServletRegistration() {
    ServletRegistrationBean registration = new ServletRegistrationBean(facesServlet(), new String[] { "*.xhtml", "*.jsf" });
    registration.setName("FacesServlet");
    registration.setLoadOnStartup(1);
    return registration;
}

@Configuration
static class ConfigureJSFContextParameters implements ServletContextInitializer {

    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {
        servletContext.setInitParameter("com.sun.faces.forceLoadConfiguration", "true");
        servletContext.setInitParameter("javax.faces.DEFAULT_SUFFIX", ".xhtml");
        servletContext.setInitParameter("com.sun.faces.forceLoadConfiguration", Boolean.TRUE.toString());
        servletContext.setInitParameter("encoding", "UTF-8");
        servletContext.setInitParameter("facelets.SKIP_COMMENTS", Boolean.TRUE.toString());
    }
}

@Bean
public ServletListenerRegistrationBean&lt;ConfigureListener&gt; jsfConfigureListener() {
    return new ServletListenerRegistrationBean&lt;ConfigureListener&gt;(new ConfigureListener());
}
</code></pre>