步骤: 1.File -->Settings -->Maven -->importing( 勾选上 Sources 和 Documentation) 2.右键项目的pom.xml -->Maven–>Reimport
3.窗口右边点击Maven Projects完成下图即可