错误日志:

java.lang.IllegalStateException: Optional int parameter 'resourceState' is present but cannot be translated into a null value due to being declared as a primitive type. Consider declaring it as object wrapper for the corresponding primitive type.

原因:

 controller层接收数字型参数resourceState时用的int接收,但是参数为空null,所以报错,将int改为Integer即可

相关文章:

  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2021-07-25
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案