SpringBoot plugin quickly generates JSON test data from entities

Table of contents

Install

use


Install

Plugin name: POJO to JSON

use

We select an entity class, right-click the mouse, and select as shown in the figure

Paste the generated json

 

In this way, the test data is generated. We can use to test excuses, fastjson etc.

But note that if you use fastjson conversion, we must remove the spaces that IDEA automatically adds for us:

ctrl+f+r quick replacement:

 

Guess you like

Origin blog.csdn.net/qq_53679247/article/details/130564370