![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mvc
赵小小酱
这个作者很懒,什么都没留下…
展开
-
mvc_tomcat:解决页面404错误The origin server did not find a current representation for the target resource
项目使用Tomcat9.0 ,MVC框架。 tomcat启动,部署完成,输入url后出现页面404错误,错误描述如下: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. 困扰了很久,学习了很多前...原创 2019-08-15 11:22:47 · 743 阅读 · 0 评论 -
HTTP403使用Ajax的POST方法向后台传输数据出现的问题的解决方案
使用Java MVC,结合前端Ajax代码,传输json串。 需求:通过前端的Ajax方法,向后台POST一个JSON串。 之前使用的是GET方法,但是需要传输的数据太长,GET已经无法满足需求,因此改成POST方法。 在这种情况下,403错误的原因十有八九可能是csrf的缘故。 GET为什么能成功呢?因为GET方法不需要CSRF,而POST必须需要它! 在jsp页面需要加上这样一行代码: <...原创 2019-10-09 15:04:22 · 924 阅读 · 0 评论