The server cannot or will not process the request due to something that is perceived ..


  The server cannot or will not process the request due to something that is perceived to be a client error

  (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

  意思是服务器不处理来自客户端的错误请求,一般是请求语法,无效的请求信息等错误原因。

  使用技术:Springmvc + jsp  

  我在提交表单的时候遇到了这个问题,后来重新检查了一下代码,发现问题的原因是:

  在提交表单的时候,用户名和密码填写的数据类型与Controller层的接收的参数类型不一致导致报错,如果有相同错误的朋友,

  检查一下代码,看看是不是请求参数一致导致的错误,表单传过去的数据无法与pojo对象匹配,导致400错误。

     

  下面总结Web项目出现400的原因:

    一,页面请求参数类型。 
    二,服务器端参数类型不匹配.  

    

 

posted @ 2019-10-20 21:33  赖伟春  阅读(4265)  评论(0编辑  收藏  举报