问题描述:在开发controller类时,提示Cannot resolve symbol 'RequestMapping',

明明已经在pom文件中引入了springboot对web的支持:spring-boot-starter-web

但是@RequestMapping飘红了,

解决方法:把光标放到@RequestMapping后面,alt+回车,选择add spring-boot-start-web to classpath

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-07-19
  • 2021-11-08
  • 2022-12-23
  • 2021-05-19
  • 2021-06-04
猜你喜欢
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-10-28
  • 2021-09-19
  • 2021-05-22
相关资源
相似解决方案