Fix for white label error in tutorial

For those of you who are following https://learnk8s.io/spring-boot-kubernetes-guide (from 2022)

When you get the dreaded “Whitelabel Error Page” and you are pulling out your hair, here is your solution:

The stack overflow: https://stackoverflow.com/questions/42330870/spring-boot-unable-to-resolve-freemarker-view (from 2020)

Which points you to https://github.com/spring-projects/spring-boot/issues/15131 (from 2018)

And the answer is:

Rename src/main/resources/templates/index.ftl to src/main/resources/templates/index.ftlh

Keywords: Spring Boot SpringBoot Freemarker Kubernetes spring-boot-starter-freemarker

This entry was posted in Software Project. Bookmark the permalink.