我实际上是使用JSP页面作为后缀的Spring Boot项目。现在,我想使用PrimeFaces制作图表。我知道PrimeFaces不支持JSP,所以我可以在同一Spring Boot项目中使用两个后缀(XHTML和JSP(吗?或者我应该将它们移至xhtml有任何想法吗 ?请帮我
将此代码插入您的@configuration类
@Bean
public ServletRegistrationBean servletRegistrationBean() {
FacesServlet servlet = new FacesServlet();
ServletRegistrationBean servletRegistrationBean =
new ServletRegistrationBean(servlet, "*.xhtml", "*.jsf");
return servletRegistrationBean;
}