Click on the first step
The second step is to enter the database information and connect to the database.
Note that the database is open at this moment.
Database here: the name of the database
Add: `?userSSL=false;serverTimezone=Asia/Shanghai ` to pass additional connection options and configuration information to the database server. The following is an explanation of the two query parameters:
`userSSL=false` sets whether to use SSL secure connection (false means not to use it)
SSL is an encrypted communication protocol used for encrypted data transfer between clients and servers.
`serverTimezone=Asia/Shanghai` Set the time zone of the database server (here the time is set to Asia/Shanghai)
The MySQL database server has a default time zone setting, but sometimes you may want to set the time zone to your specific time zone to be consistent when working with dates and times.
From the above, you can know the complete database connection URL
://localhost:3306/springboot-mysql?userSSL=false;serverTimezone=Asia/Shanghai
For example
Click to confirm
After the connection is successful in the third step, the entity class is generated
Result after successful connection: (Note that the following database-related files may be required here, just follow the prompt in the lower right corner to complete)
Click to generate POJO
Click OK and it will be generated.