1 右键点击项目> Properties
2.Deployment Assembly, Add按钮 > Java Build Path Entries> Next,选择Maven Dependencies > Finish
3.重新部署工程