程序包org.springframework.web.bind.annotation.RequestMapping不存在

IDEA2020.1启动springMVC出现错误

org.springframework.web.bind.annotation.RequestMapping不存在

解决方法:File–>Settings–>Build, Execution, Deployment–>Build Tools–>Maven–>Runner

org.springframework.web.bind.annotation.RequestMapping不存在

保存启用即可

相关文章: