When I first used idea and didn't know how to use Maven, it was difficult to import jdbc. Don't be afraid, just a few steps below!
IDEA imports JDBC, with pictures in detail
1. Click on the upper left corner: File --> Project Structure
2. The following figure will appear, and then follow the steps in the picture.
3. After following the above figure, a box will come out to let you choose your jdbc, as shown in the figure below, select After that, click OK
4. After clicking OK , the jdbc information in the two red boxes will appear, and then you must click Apply to add it, and then click OK, the interface will close by itself
5. Now that it has been added, how to check it?
Click on External Libraries, you can see the jdbc you added.