解决方案 »

  1.   

    "http://www.springframework.org/schema/beans/spring-beans.4.3.xsd"
    改成
    "http://www.springframework.org/schema/beans/spring-beans-4.3.xsd"
    这个文件不建议手打,一般复制配好的
      

  2.   

    new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
      

  3.   

    spring不要手打哦,去找个工程里的贴过来
    http://www.springframework.org/schema/beans 访问这个网站
    只有 http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
    没有你的 http://www.springframework.org/schema/beans/spring-beans.4.3.xsd
    另外没有本地xsd的情况下,最后不写版本号,这样可以一直获得最新的xsd
      

  4.   

    spring这些约束空间和命名的文件都是通过工具导入的,不是手写的。
      

  5.   

    可能跟你xml的编码格式有关,建议用noteapp++ 看看xml是不是UTF-8
      

  6.   

    建议用springboot  配置这些鸟玩意太烦了
      

  7.   

    我也刚写完了这个例子,我的xml是拷的网页上的,因为太多了,懒得打