dji-sdk / DJI-Cloud-API-Demo

MIT License
112 stars 84 forks source link

controlDockDebug的方法发现的一些问题。 #32

Closed 412111959 closed 11 months ago

412111959 commented 11 months ago

controlDockDebug的方法,如下图。里面用ObjectMapper.convertValue()转换实体类,里面会有报错的情况。比如实体类没有属性的时候,转换就会报如下错误(好像可以通过配置避免)。我这边参考用之前旧的做法,暂时解决这个问题 com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class xxx.xxx.className and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0]) image image