我们有时会遇到这种问题,知道自己需要什么jar包,但不知道在pom.xml里怎么配置。这里有一个方法。 访问maven中央仓库,地址https://search.maven.org/ 然后复制粘贴吗,就可以了。