1.創(chuàng)建pom.xml文件,把要使用的包配置好2.cmd中運行命令mvn eclipse:eclipse3.將pom文件所在 目錄導(dǎo)入eclipse4.將項目轉(zhuǎn)換成maven項目。