在Eclipse或者STS项目管理器右键选中你的项目,执行如下步骤。
1.(此步骤可不要)选择Build Path->Configure Build Path->Order and Export,勾选Maven Dependencies->Apply
2.选择Properties->Deployment Assembly->Add->Java Build path Entries->Apply
最后,如果项目仍没有变化则clean当前项目即可。
在Eclipse或者STS项目管理器右键选中你的项目,执行如下步骤。
1.(此步骤可不要)选择Build Path->Configure Build Path->Order and Export,勾选Maven Dependencies->Apply
2.选择Properties->Deployment Assembly->Add->Java Build path Entries->Apply
最后,如果项目仍没有变化则clean当前项目即可。