在Web项目中怎么配置Spring的IoC容器?

在Web项目中怎么配置Spring的IoC容器?

展开
收起
真的很搞笑 2021-10-27 22:38:26 454 分享 版权
1 条回答
写回答
取消 提交回答
  • 如果需要在Web项目中使用Spring的IoC容器,可以在Web项目配置文件web.xml中做出如下配置: contextConfigLocation classpath:applicationContext.xml

    org.springframework.web.context.ContextLoaderListener

    2021-10-27 22:38:43
    赞同 展开评论

国内唯一 Forrester 公共云容器平台领导者象限。

还有其他疑问?
咨询AI助理