Comments (6)
感谢解答,爱来自广东
from pojo2json.
支持呀。默认就是不带随机值呀。你是说String类型有随机值嘛?
from pojo2json.
光标放置在类名上,右键只有Copy JSON选项和Column Selection Mode,尝试过都输出有随机值。先前版本我记得Copy JSON不输出随机值,有一个额外的选择Random...(抱歉具体名称忘了)才输出随机值。我不太清楚现在如何操作了,只有修改TOOLS里的表达式了吗
from pojo2json.
https://github.com/organics2016/pojo2json/blob/master/README_ZH.md#configuration
两种配置,
第一种不带随机值
第二种带随机值
不管哪一种都是延用之前版本的两个选项的默认输出方式。
现在是精确到类型的配置,你想固定String类型的输出值可以这么配java.lang.CharSequence=固定值
from pojo2json.
我似乎找到问题所在了,我右键菜单没有Copy JSON and Random Values的选项。如图。来自IDEA 2023.1.3
from pojo2json.
是的,因为我把Copy JSON and Random Values选项删了,
因为现在支持对单独的类型进行自定义值,你可以定义成随机的也可以是固定的。你想写什么值进去都可以,只要满足表达式就行了。
如果配置改乱了跑不起来,就把配置都删了然后保存,配置就自动恢复默认值了。
from pojo2json.
Related Issues (20)
- JsonProperties without value generate empty keys in json. HOT 3
- Support for member class HOT 4
- 功能请求:模拟实际使用的随机值 HOT 6
- 可否不直接进入某个类文件,用于支持泛型 HOT 1
- RFC: I want this plugin to integrate with HTTP Client plugin. HOT 3
- Consider adding the possibility of setting max string size for random values HOT 5
- StackOverflow on Idea 2022.2 HOT 4
- 能支持继承的父类class文件吗 HOT 8
- Unable to handle JsonNode HOT 4
- 快捷使用建议: 上调复制JSON的层级以及增加新的快捷栏目. HOT 1
- 一个java bean里没有`key`字段,但有`getKey`方法,支持copyToJson吗? HOT 2
- 大佬请教下,依赖包里的类无法转换么? HOT 2
- 1.2.6版本 copy json and random values 时报了NPE HOT 5
- 是否考虑添加带注释的转换选项? HOT 2
- RFC: Support snake_case in the Json keys HOT 1
- 是否考虑加一个选项,在最外面包一层 code data message 这种的 HOT 3
- Map, MultiValuedMap converts to empty section HOT 1
- List<HashMap<String,String>>会提示This class reference level exceeds maximum limit or has nested references! HOT 1
- 目前不支持scala的case class,是否考虑适配一下scala的case class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pojo2json.