IDEA 写 pom.xml 时没有代码提示
在学习Spring Boot 整合 Mybatis-plus 时。在写 pom.xml时敲 mybatis-plus 时没有 mybatis-plus-boot-starter 的提示,只能从 maven repository 里进行搜索再粘贴到 pom.xml,很是浪费时间。
解决方法
1. 检查自己的 maven 设置是否正确
左上角 File -> Settings,搜索框内直接搜索 maven 即可找到
2. 如果 maven 设置正确,找到 maven 下的 Repositories,再选择第二行,点击 update 等待更新即可
date 等待更新即可