Code Generation

1.File == "Settings ==" plugins == "marketplace, search easycode, and install easycode, you will be prompted to restart, restart the idea after installation.

2. Click after the restart database right, click + == "the DataSource ==" MySQL (here I use MySQL)

3. Here you need to configure the relevant information about your database, such as address, user name and password, and then test the next connection.

PS: If you are prompted less what prompted to download directly from the drive, or click below to download. If there are mistakes:

Connection to xxx failed.
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

 Then you need to add in the back url

serverTimezone=UTC

  

4. After a successful connection as follows:

The right-to-table operation codes of the code generation

6. You can select the relevant class needs to be generated, click OK.

Guess you like

Origin www.cnblogs.com/lightbc/p/11967928.html