当前位置:网站首页>JSP page running but displaying source code

JSP page running but displaying source code

2022-06-25 18:05:00 Full stack programmer webmaster

Hello everyone , I meet you again , I'm your friend, Quan Jun .

Use SpringMVC Jump to the page , But the page display is missing JSP Source code , as follows :

Find various reasons through the Internet , Finally find a solution , as follows :

The problem is that in web.xml In the document “/*”, Access... In this form jsp When you file , asterisk “*” Will be able to *.jsp,*.sql,*.txt All as txt Handle . The result is to load directly in the browser jsp Source code .

therefore , Just put the asterisk “*” Get rid of , Change to another form of access . Such as “.do”、“/” And so on .

Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/151144.html Link to the original text :https://javaforall.cn

原网站

版权声明
本文为[Full stack programmer webmaster]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251753412765.html