• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
马孔多之上校
博客园 首页 新随笔 联系 订阅 订阅 管理

2020年11月24日

HTTP Status 405 - Request method 'POST' not supported
摘要: springMVC中, jsp页面配置了隐藏域等, put/delete 请求不能跳转到目标方法, 报错: HTTP Status 405 - Request method 'POST' not supported. 原因: 在 web.xml 中 HiddenHttpMethodFilter 隐藏 阅读全文
posted @ 2020-11-24 13:08 ULKcs7RflYX7tXoR 阅读(537) 评论(0) 推荐(0)
 
 

2020年11月13日

HTTP Status 500 - Error instantiating servlet class org.springframework.web.servlet.DispatcherServlet
摘要: 1.核心控制器 //web.xml 2.核心控制器引向的springMVC配置文件 [自动扫包+视图解析(prefix+suffix地址)] //springMVC-servlet.xml 3.自T动扫描包下的控制器Controller文件 [@Controller类注解+@RequestMappi 阅读全文
posted @ 2020-11-13 16:05 ULKcs7RflYX7tXoR 阅读(516) 评论(0) 推荐(0)
 
 

2020年11月7日

[HTTP Status 405 ] - JSPs only permit GET POST or HEAD
摘要: 环境:tomcat 8.0.5 ,jdk 1.8 用时:45min 原因: jsp头文件中 isErrorPage 属性值默认为false,即不打开错误页面. 解决方案(REST风格): 在success(jsp)页面头部文件加入键值对: isErrorPage="true" . 附: jsp头文件 阅读全文
posted @ 2020-11-07 14:38 ULKcs7RflYX7tXoR 阅读(194) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3