springMVC directly returns the jsp source code

Controller settings
Insert picture description here
web.xmls settings Insert picture description here
Run results: Insert picture description here
delete *.jsp
Insert picture description hererun results
Insert picture description here

After looking for the bug for a day, I changed my Tomcat and browsers, and read a lot of blogs. The final solution was to run a similar project that did not cause problems, and make minor modifications to find the problem and record it.

I also saw an article with a similar problem, I feel very (kan) bull (bu) compelling (dong), record it:
https://blog.csdn.net/l1509214729/article/details/81110394

Guess you like

Origin blog.csdn.net/qq_37596010/article/details/114322398