在调用Json串生成方法时,提示: No serializer found for class com.jeremxy.domain.EpgDetail and no properties
discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS)

网上搜索了一般之后,才知道原来如果需要将某个类转成Json串的话,那么必须要求其属性为public,或者提供public的get()方法。

注意:必须要是public 的get()方法。

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
相关资源
相似解决方案