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

Example analysis of 404 tread pit configured by SpringMVC

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

Share

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

The content of this article is to share with you the content of the example analysis of SpringMVC configuration 404 treadmill. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Error

The error is to keep reporting 404, which means that the path can not be found. How to try the path is still 404. I'm sure you all hate 404 very much, huh?

We can see that there is no error report, and there is no problem with the configuration and code. But it's 404 when it runs.

At first, I thought it was the path problem with the night star boss, and then I went to check the path problem:

You can see that there is no problem with the path and everything. At this time, I was very helpless, 555555555555, because he did not report wrong, and the configuration was all right.

Reason

The reason for my mistake is that I can't find 55555555 even at night, because all the methods on the Internet are useless. I cried to death directly. But luckily, God saved me 555555.

No more nonsense, directly to the reason!

Reason:

The same reason for the mistake I made in a previous article worth 50-the JDK version is too high. I believe that careful friends can see the picture above and find that the JDK version I started is 17, so I always have 404. It really killed me. Ha. Because the latest version of JDK will be incompatible with some versions of the framework, some of the reasons for errors can't be found at all (thanks to the lessons I learned last time). So it is better for everyone to use the 555555 version.

Initial configuration:

The result of the beginning:

four hundred and four

Configuration after change:

The result of the change:

Note: the above jdk configuration is not those, there are several need to change 1.8. I am just giving you an example.

Thank you for reading! This is the end of this article on "example analysis of SpringMVC configuration 404 trampling pit". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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