spring boot does not include the complete webapp folder in the final jar artifact - .xhtml files are excluded
if you run ./gradlew assemble, then copy build/lib/Spring-Boot-JSF-Example.jar to some place outside the project folder and then run: java -jar Spring-Boot-JSF-Example.jar accessing http://localhost:8080/test.xhtml will produce an error