1.在idea首页 File–>setting–>build,execution,deployment–>buildTool–>maven–>work offine勾选,apply,ok
2.点击右侧Maven Project–>lifecycle–>install,下载jar包;没有的话自己先点+号添加pom文件。
3.FIle–>setting–>build,execution,deployment–>buildTool–>maven–>work offine取消勾选,apply,ok,这时就会开始下载依赖