當(dāng)前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
JSP页面显示源码
JSP頁面顯示源碼
錯誤展示:
解決方法:
web.xml配置文件 <url-pattern>/*</url-pattern> 改為 <url-pattern>/</url-pattern> 。
修改前:
修改后:
<servlet><description>servlet</description><servlet-name>rest</servlet-name><servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class><init-param><param-name>contextConfigLocation</param-name><param-value>classpath:spring/spring-mvc.xml</param-value></init-param><load-on-startup>1</load-on-startup></servlet><servlet-mapping><servlet-name>rest</servlet-name><url-pattern>/</url-pattern></servlet-mapping>作者:feichen2016
來源:CSDN
原文:https://blog.csdn.net/feichen2016/article/details/58588370
總結(jié)
- 上一篇: php ajax jquery瀑布流,j
- 下一篇: PLM与ERP的区别