java.lang.IllegalStateException: No primary or default constructor found for interface java.util.List
java.lang.IllegalStateException:No primary or default constructor found for interface java.util.List
原因:springboot测试List接口时JSON传参异常,接口接受不规范

解决:将对应Controller层的方法由原来的@GetMapping改成@PostMapping,并将@RequestBody放入对应List前

相关文章:

  • 2022-12-23
  • 2021-05-23
  • 2021-07-14
  • 2021-06-07
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
猜你喜欢
  • 2021-08-04
  • 2021-11-09
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案