20200519问题记录

1.java.sql.SQLIntegrityConstraintViolationException: ORA-00001: 违反唯一约束条件 (YKD_DWH.SYS_C0072779)
解决方法:主键重复,手动设置索引值。
//查询下一个索引值
select S_T_PROJECTBASE.NEXTVAL from dual;

 

2.HTTP Status 400 – 错误的请求
 由于被认为是客户端对错误(例如:畸形的请求语法、无效的请求信息帧或者虚拟的请求路由),服务器无法或不会处理当前请求。
解决方法:前后端请求方式不一致。

 

3.

org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "somelist"
Caused by: java.lang.NumberFormatException: For input string: "somelist"

 

4.

org.springframework.web.bind.MissingPathVariableException: Missing URI template variable 'pageNum' for method parameter of type intat 861)
  • @PathVariable是获取url上数据的。
  • @RequestParam获取请求参数的(包括post表单提交)

   5.

org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public java.lang.String com.dist.training.bdf.controller.ProjectBaseController.getAllProject(com.dist.training.bdf.dto.PageDTO)

1.@RequestBody主要用来接收前端传递给后端的json字符串中的数据的(请求体中的数据的);
2.GET方式无请求体,所以使用@RequestBody接收数据时,前端不能使用GET方式提交数据,而是用POST方式进行提交;
3.在后端的同一个接收方法里,@RequestBody与@RequestParam()可以同时使用,@RequestBody最多只能有一个,而@RequestParam()可以有多个。

 

6.oracle数据库建表之后要提交事务。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值