maven项目启动找不到spring监听器

Eclipse中启动tomcat的时候报如下异常:

Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

解决方法:
1.在eclipse上选择工程项目右键,点击Properties(或者选择项目按Alt+Enter快捷键打开),如图所示:
maven项目启动找不到spring监听器
2.然后下图步骤操作
maven项目启动找不到spring监听器

3.最后在弹出框中选择按照下图操作
maven项目启动找不到spring监听器