All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redismq.samples.consumer.JavaBean Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
package com.redismq.samples.consumer;

import com.redismq.common.serializer.RedisMQStringMapper;
import lombok.Data;

@Data
public class JavaBean  {
    private String a;
    private Integer b;

    private String ggg;
    private Integer ddd;
    
    public static void main(String[] args) {
        JavaBean javaBean = RedisMQStringMapper
                .toBean("{ \"a\": \"valueA\", \"b\": 123, \"ggg\": \"valueGgg\", \"ddd\": 456 }", JavaBean.class);
        System.out.println(javaBean);
//        JavaBean javaBean1 = new JavaBean();
//        javaBean1.setB(1);
//        RedisMQObjectMapper.toJsonStr()
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy