java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

spring+springmvc +mybatis 

启动报错

将resultMap改为ResultType

如果是maven项目

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

项目点击右键 点击 Properties 选择Deployment Assembly

  再点击右边的Add按钮 选择Java Build Path Entries后点击Next按钮 然后选择你的Maven Dependencies 确定即可

原文地址:https://www.cnblogs.com/ljsn/p/8658025.html