项目中的问题
zhoushanmin
这个作者很懒,什么都没留下…
展开
-
Mybatis-plus不使用窗口函数实现排序并输出序号:
Mybatis-plus不使用窗口函数实现排序并输出序号原创 2022-07-08 16:09:22 · 659 阅读 · 1 评论 -
FeignClient 调用服务端时,服务端报错:Request method ‘POST‘ not supported]
FeignClient 调用服务端时,服务端报错:Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ‘POST’ not supported]FeignClient 端@GetMapping("/purchasingOrder/selectAllPurchasingOrderForJointQuery") CommonResult<PageInfo<Purc原创 2021-01-07 16:49:55 · 3438 阅读 · 1 评论 -
记录mybatis批量添加数据后返回的id设置到指定的对象的哪个属性
记录mybatis批量添加数据后返回的id设置到指定的对象的哪个属性Dao@Mapperpublic interface GoodsDao { // 添加单个商品订单 Integer batchInsertGoods(@Param("singleGoodsOrders") List<SingleGoodsOrder> singleGoodsOrders);}mapper.xml<?xml version="1.0" encoding="UTF-8" ?>原创 2021-01-04 18:41:28 · 220 阅读 · 0 评论 -
java.lang.IllegalStateException: No typehandler found for property dateOfManufacture
mybatis中使用Java8的日期LocalDate、LocalDateTime报以下错误:指类型处理异常,除了Mapper文件里跟实体类的属性不一致外,还有可能是类型转换错误我的 dateOfManufacture 是 java时间类型LocalDateTime由于之前使用的是如下版本的mybatis-spring-boot-starter查询meven官网发现mybatis版本为3.4.4解决方法:更换更高版本的mybatis-spring-boot-startermybati原创 2020-12-29 15:46:11 · 738 阅读 · 0 评论 -
记录SpringMVC后端批量接收前端发来的json数据
记录SpringMVC后端批量接收前端发来的json数据前端代码:let request = function (url,data,type){ $.ajax({ url: url, data: data, type: type, dataType: "json", accept: "application/json", # 重点是加上这两句 contentType: "application/原创 2020-12-29 14:19:47 · 214 阅读 · 1 评论 -
记录微服务 Feign访问服务端是报feign.FeignException$InternalServerError: status 500 reading
记录微服务 Feign访问服务端是报feign.FeignException$InternalServerError: status 500 reading CommodityManageService#insertCommodityCategory(CommodityCategory) 错误服务端客户端客户端报错服务端报错从服务端报错可以看出接收的参数为空,说明客户端没有把参数传过去。spring cloud项目使用feign的时候都会发现一个问题,就是get方式无法解析对象参数。其实原创 2020-12-19 22:24:20 · 7672 阅读 · 1 评论