zbb20181219 json,javabean 相互传唤

<dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>2.4</version>
            <classifier>jdk15</classifier>
        </dependency>
 
MiniProgramPayDTO obj = new MiniProgramPayDTO();
        RequestPayment obj2 = new RequestPayment();
        obj.setPayData(obj2);
        JSONObject json = JSONObject.fromObject(obj);
 
        System.out.println(json);
    }
 
 
--------------------------------------------
 
原文地址:https://www.cnblogs.com/super-admin/p/10144410.html