发现了个用来测试的工具Podam,省下了用来填充数据的时间
原文:https://blog.csdn.net/weixin_43496972/article/details/110824342
Podam官网:https://mtedone.github.io/podam/
使用方法:
pom.xml引入依赖
<dependency>
<groupId>uk.co.jemos.podam</groupId>
<artifactId>podam</artifactId>
<version>7.1.1.RELEASE</version>
</dependency>
@Test
public void testPodam() {
PodamFactory factory = new PodamFactoryImpl();
CreateParam req = factory.manufacturePojo(CreateParam.class);
System.out.println(JSON.toJSONString(req));