When docking with a third party, it’s very common for us to return JSON with many parameter fields, so it must take a lot of time for us to manually create JavaBeans. Bloggers have found many tools on the Internet that can automatically generate JavaBeans through JSON. Here’s a brief introduction to the plug-in gsonformat in IntelliJ idea.
1. What is gson format
As plug-in to convert JSON data format to JavaBean object.
2. Shortcut key: Ctrl + Alt + s, or settings — & gt; plugs — & gt; enter gsonformat install plugins
After the installation is completed, restart IntelliJ idea. First, you need a new class file, and then press Alt + insert to select gsonformat, or Alt + s to pop up the box and enter the string data in JSON format.
Read More:
- IntelliJ idea community community integrated Tomcat or jetty tutorial
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- [jQuery] jQuery operates on JSON strings or JSON objects
- MacOS: How to Fix Intellij-IDEA main menu disappears Bug
- Module build failed Error Plugin/Preset files are not allowed to export objects, only functions (How to Fix)
- How can IntelliJ idea completely delete a project
- When IntelliJ idea is programmed, 1. Black thick line or black cursor appears; 2. The solution of carriage return unable to wrap. (practical recommendation method 2)
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- Upgrade to IntelliJ idea 2021.2 and start the project with an error
- Git uploads local IntelliJ idea project to GitHub
- Solve the error of POM file failed to read artifact descriptor for XXX under IntelliJ idea
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- The process of solving Intellij IDEA can’t load jvm DLL error at a time
- IntelliJ idea debugging Java 8 stream
- [error] error handling of IntelliJ idea
- How to Install Python 3 in Centos7 Quickly
- IntelliJ idea automatically generates serialVersionUID
- Plugin Error: Plugin “Android Code Generator“ is incompatible (supported only in IntelliJ IDEA)
- IntelliJ idea code did not report an error, compilation failed