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

时间:2024-05-19 08:48:51

程序包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不存在

保存启用即可