The solution to the emergence of 404 in Freemarker for SpringBoot2.2.X
SpringBoot2.2.X uses Freemarker to appear 404 solutions. For this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more small partners who want to solve this problem find simpler and easier ways.
Before I saw SpringBoot out of version 2.2.1 (currently 2.2.2), I ran it and found that the access address is 404. The code is the same as before, but I upgraded the previous version (2.1.8).
Later found that SpringBoot has changed the original default suffix name.ftl to.ftlh, if you want to continue to maintain the previous.ftl in the configuration file configuration is good.
spring: freemarker: suffix: .ftl
When you have a problem, make a note.
About SpringBoot2.2.X with Freemarker appeared 404 solution to the problem to share here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.