在Intellij IDEA的Maven中,在pom.xml编写依赖没有提示,如果全部手写,就非常影响效率了。

方法分享

点击File的Settings
在Intellij IDEA的Maven中,输入依赖没有提示 - 图1
搜索框中输入maven,选择Build, Execution, Deployment下的Repositores
在Intellij IDEA的Maven中,输入依赖没有提示 - 图2
选中本地仓库,更新Maven仓库即可
在Intellij IDEA的Maven中,输入依赖没有提示 - 图3