zoukankan      html  css  js  c++  java
  • 'org.springframework.beans.factory.xml.XmlBeanFactory' is deprecated

    'org.springframework.beans.factory.xml.XmlBeanFactory' is deprecated

    XmlBeanFactory这个类已经被摒弃了。可以用以下代替:

    ApplicationContext context= new ClassPathXmlApplicationContext("applicationContext.xml");

    比如:

            XmlBeanFactory factory=new XmlBeanFactory(new ClassPathResource("applicationContext.xml"));
            IAopService service=(IAopService) factory.getBean("aopService");
            service.withAop();
            factory.destroySingletons();
    

    可以修改为:

            ApplicationContext context= new ClassPathXmlApplicationContext("applicationContext.xml");
            IAopService service=(IAopService) context.getBean("aopService");
            service.withAop();
    
  • 相关阅读:
    K-means聚类
    支持向量机_原理
    回归+内插
    ftp 服务器
    cmd 切换python版本
    cookie
    类加载器
    GC
    jvm结构
    mysql文件
  • 原文地址:https://www.cnblogs.com/expiator/p/6824326.html
Copyright © 2011-2022 走看看