将Json转成对象的工具 Iot_data iot_data = JSONUtil.toBean(data, Iot_data.class); maven注解 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.5.9</version> </dependency>