JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

400 (Bad Request)

发布时间 2023-06-01 17:05:45作者: zno2

出现这种情况极有可能是 form表单的字段类型与bean中的类型不一致,无法映射导致的

 

比如:

<input type="radio" name="isAvailable" value="是" checked="checked"> 启用 

java bean 中却定义成 

private int isAvailable;

 

这时,value值"是" 无法映射到数值类型的 isAvailable

    本栏目推荐文章
  • 安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason
  • vscode错误:Unable to connect to VS Code server: Error in request.
  • scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法
  • pytest 内置fixture-request
  • GitHub Pull request 同步解决代码冲突
  • 微信小程序创建formdata对象,并通过 wx.request 发送file文件
  • request和response请求包中的各项解释
  • Dynamics 365 导入Excel报错:Server was unable to process request.
  • Required request body is missing报错及解决
  • scrapy爬取图片时遇到错误:ValueError: Missing scheme in request url: //scpic3.chinaz.net/Files/pic/pic9/202103
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们