com.gbsc.propertyeditor.PropertyEditorBeans.xml这个xml文件不存在或者位置不对

解决方案 »

  1.   

    问题解决了:
    把 
            ClassPathResource resource = new ClassPathResource   
                ("com.gbsc.propertyeditor.PropertyEditorBeans.xml");   
    改成:
           ClassPathResource resource = new ClassPathResource   
                ("PropertyEditorBeans.xml");   就可以了,挺Stupid的错误,看来细心很重要,谢谢啦。我多写了一段:"com.gbsc.propertyeditor.“(因为我一开始是把它放在src\com\gbsc\propertyeditor下面的,后来移动了)
    如果PropertyEditorBeans.xml文件是在src\com\gbsc\propertyeditor下面的话,像"com.gbsc.propertyeditor.PropertyEditorBeans.xml"这样写也不对,应该是"com/gbsc/propertyeditor/PropertyEditorBeans.xml"才对。
      

  2.   

    这个文件应该在classpath的/com/gbsc/propertyeditor/下面,