Connect to the database, view the data table, and generate entity classes from the database table in Eclipse

Step 1: Connect to the database

Click the Eclipse menu item "Window", select "Show View", and then select "Data Source Explorer", as shown in the figure below, if you cannot directly find "Data Source Explorer" in the "Show View" submenu, you can select "Other..." at the bottom, find it in the opened window:

This window can be seen in Eclipse after opening the Data Source Explorer. If you are opening it for the first time and have never used it, then you should not have any database links in this window:

Right-click on "Database Connections" and select "New":

In the pop-up window, select the correct database product for your own database, and click "Next", as shown in the following figure:

Guess you like

Origin blog.csdn.net/freezingxu/article/details/122781031