Maven pom.xml in the project database references less than the right questions jar package? Mysql database maven problems connecting to coordinate error intellij development tool as an example

When you import a database, see the top right corner drive my database used by database
Here Insert Picture Descriptionclick on the "+"
Here Insert Picture Description

I have a mysql database:
general default database interface
Here Insert Picture Description

Example: Using test-connect to see if the connection is successful.

If unsuccessful, replace the drive, using the test-connect test again

Here Insert Picture Description
Obviously, I do not drive

In other words!
Here Insert Picture Description
Operating results:
Here Insert Picture DescriptionView seen my mysql-connector-java version is 5.1.47

Click here to find version (or into the page to find maven coordinate mysql-connector-java in)
https://mvnrepository.com/artifact/mysql/mysql-connector-java

Here Insert Picture DescriptionClick to go to 5.1.47 (Click Digital !!!)

Here Insert Picture Description
mysql-connector-java-5.1.47 maven coordinates

<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.47</version>
</dependency>

============END

After Similarly you can select the required dependencies imported into the desired project.

Guess you like

Origin blog.csdn.net/qq_39944559/article/details/94957708