网上方法挺多,对我凑效的是这个:

  • 选择File
  • Settings
  • Build, Execution, Deployments
  • Build Tools
  • Maven
  • 把Always update snapshots勾上
    Error:(3, 47) java: 程序包org.springframework.web.bind.annotation不存在 问题解决
    自动更新依赖后就OK了。

相关文章: