报错
眠不觉2020
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【解决报错】Cannot deserialize value of type `java.time.LocalDate` from String “2020-1-2“:
报错如下:Bad Request: JSON parse error: Cannot deserialize value of type `java.time.LocalDate` from String "2020-1-2": Failed to deserialize java.time.LocalDate: (java.time.format.DateTimeParseException) Text '2020-1-2' could not be parsed at index 5; nested原创 2022-04-23 11:08:32 · 5896 阅读 · 0 评论 -
【解决前端报错】Bad Request: Required request parameter ‘id‘ for method parameter type Long is not present
后端查询列表接口返回的对象里包含Long id,前端获取到这个id,执行通过Long id删除操作。这时删除操作报错400,大意是没找着Long类型的id.swagger相关接口截图:Long类型的在swagger显示是integer64 , integer是integer32.这是前端请求后,出现在我的后端console控制台的报错信息。前端部分代码如下图所示:也许问题出现在接口的参数传递上,接收的参数是urlencode编码格式还是json编码格式?这时我突然意识到,或许前端获取了一条原创 2022-04-05 21:57:33 · 33976 阅读 · 0 评论 -
【解决报错】Duplicate entry ‘1000002‘ for key ‘UK_5tcttgo4lel8ex3wupchinl1l‘
在使用jpa生成数据库时,误把字段设成unique=true/** * 身份证号 */ @Schema(description = "身份证号", required = true) @NotNull @Column(name = "id_num", nullable = false, unique = true) private String idNum;然后操作新增一条数据时就报错:Duplicate entry '1000002' for key原创 2022-04-05 21:29:59 · 1068 阅读 · 0 评论 -
后端解决【跨域问题】
在WebSecurity类下添加如下代码@Bean public CorsFilter corsFilter() { UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); CorsConfiguration config = jHipsterProperties.getCors(); config.setAllowCredentials(tru.原创 2022-04-05 20:49:34 · 284 阅读 · 0 评论 -
【Could not read entity state from ResultSet】解决报错
org.springframework.dao.DataIntegrityViolationException: Could not read entity state from ResultSet : EntityKey[com.ledar.mono.domain.User#2]; SQL [n/a]; nested exception is org.hibernate.exception.DataException: Could not read entity state from ResultSet原创 2022-03-13 10:42:11 · 2584 阅读 · 0 评论 -
【无标题】
欲测试添加患者信息功能,swagger报错信息如下:找到 Errors / exceptionTranslator类中的相应提示信息:再结合debug窗口下的报错信息即可判断是输入信息有误导致的。应该为自定义类型中的ADULT或CHILD。修改传入参数修改为正确的类型之后即可成功...原创 2022-03-11 11:18:14 · 125 阅读 · 0 评论 -
Error running generator entities: TypeError: Cannot read properties of undefined (reading ‘changelog
idea Terminal执行jhipster jdl mono1.jdl 命令后,报错如下:解决方法:原来的jhipster配置文件中的entities属性中有相关表,需要将[]内的内容全部删除再在idea的命令行执行jdl文件生成实体类语句。原创 2022-03-10 22:01:27 · 480 阅读 · 0 评论
分享