<Pre Object Constructure>
1 2 3 4 5 | public DHT22Data( Integer mcuId, Long sensorDt) { this.mcuId = mcuId; this.sensorDt = sensorDt; } |
<New Object Constructure>
1 2 3 4 5 | public DHT22Data( @JsonProperty( "id") Integer mcuId, @JsonProperty("sendt") Long sensorDt) { this.mcuId = mcuId; this.sensorDt = sensorDt; } |
No comments:
Post a Comment