lxd19891010 2015-03-11 08:36 采纳率: 0%
浏览 2092

DispatcherServlet和ContextLoaderListener区别

在web.xml中配置了


org.springframework.web.context.ContextLoaderListener



springMVC
org.springframework.web.servlet.DispatcherServlet

contextConfigLocation
classpath*:springMVC.xml,classpath*:businessApplication.xml,classpath*:CXFContext-client.xml

1


springMVC
/


contextConfigLocation
classpath:springMVC.xml

为什么加载了两遍springMVC.xml,这两个有什么不同吗?

  • 写回答

2条回答

  • lxd19891010 2015-03-11 08:37
    关注


    springMVC
    org.springframework.web.servlet.DispatcherServlet

    contextConfigLocation
    classpath*:springMVC.xml,classpath*:businessApplication.xml,classpath*:CXFContext-client.xml

    1


    springMVC
    /


    contextConfigLocation
    classpath:springMVC.xml



    org.springframework.web.context.ContextLoaderListener

    
    
    评论

报告相同问题?

悬赏问题

  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable