Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the emergence of 404 in Freemarker for SpringBoot2.2.X

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report