SSM 运行时发生异常:UnsatisfiedDependencyException

 

原因:(1) 注解或者是扫描路径有错误导致依赖关系

           (2) 在web.xml文件中没有配置“读取Spring上下文的监听器

<!-- 读取Spring上下文的监听器 -->
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

   web.xml文件配置哦! 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章