tomcat - spring-boot + JSF. Views *.jsf working properly but *.xhtml not -


i'm using spring boot jsf (primefaces). here can find sample of application. when invoke application using mvn spring-boot:run , access application with jsf or with xhtml works ok. when deploy application tomcat, xhtml page not rendered properly. can see page source (xhtml source, not html), not wanted. want able display same .jsf , .xhtml.

can tell me missing?

edit:

as reviewd this issue , not helpfull (i have *.xhtml mapping faces servlet , wrote before, working on spring-boot embedded tomcat not on classic tomcat), think problem more related spring configuration, i'm not sure , change.

thanks

problem in spring config. add file application.java:

@bean public viewresolver getviewresolver() {     internalresourceviewresolver resolver = new internalresourceviewresolver();     resolver.setprefix("/view/");     resolver.setsuffix(".xhtml");     return resolver; } 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -