Maven项目中需要为一些文件做对应的配置,比如说上篇的:
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.47</version>
</dependency>
</dependencies>
我们应该如何获取配置呢?
搜索我们需要的文件,例如mysql:
![](https://img.haomeiwen.com/i711728/9b0ed49cec541cc0.png)
点击进来之后,选择需要的版本:
![](https://img.haomeiwen.com/i711728/529378681571e031.png)
然后我们进入:
![](https://img.haomeiwen.com/i711728/54e92321004c1d66.png)
把这个复制出来即可。
加油~
网友评论