Giter VIP home page Giter VIP logo

Comments (6)

obill123 avatar obill123 commented on May 28, 2024 1

感谢解答,爱来自广东

from pojo2json.

organics2016 avatar organics2016 commented on May 28, 2024

支持呀。默认就是不带随机值呀。你是说String类型有随机值嘛?

from pojo2json.

obill123 avatar obill123 commented on May 28, 2024

光标放置在类名上,右键只有Copy JSON选项和Column Selection Mode,尝试过都输出有随机值。先前版本我记得Copy JSON不输出随机值,有一个额外的选择Random...(抱歉具体名称忘了)才输出随机值。我不太清楚现在如何操作了,只有修改TOOLS里的表达式了吗

from pojo2json.

organics2016 avatar organics2016 commented on May 28, 2024

https://github.com/organics2016/pojo2json/blob/master/README_ZH.md#configuration
两种配置,
第一种不带随机值
第二种带随机值
不管哪一种都是延用之前版本的两个选项的默认输出方式。
现在是精确到类型的配置,你想固定String类型的输出值可以这么配java.lang.CharSequence=固定值

from pojo2json.

obill123 avatar obill123 commented on May 28, 2024

1701937075507
我似乎找到问题所在了,我右键菜单没有Copy JSON and Random Values的选项。如图。来自IDEA 2023.1.3

from pojo2json.

organics2016 avatar organics2016 commented on May 28, 2024

是的,因为我把Copy JSON and Random Values选项删了,
因为现在支持对单独的类型进行自定义值,你可以定义成随机的也可以是固定的。你想写什么值进去都可以,只要满足表达式就行了。
如果配置改乱了跑不起来,就把配置都删了然后保存,配置就自动恢复默认值了。

from pojo2json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.