Spring class EnvironmentCapable

后端 未结 2 1546
梦如初夏
梦如初夏 2021-01-05 06:18

I received run-time error for string

ApplicationContext context = new ClassPathXmlApplicationContext(\"Beans.xml\");

java.lang.NoClassDefFoundError: org/sp         


        
相关标签:
2条回答
  • 2021-01-05 06:28

    That's a Spring 3.1 (still a milestone release) class. If you're intending to use Spring 3.0, you must have mixed in some 3.1 stuff accidentally.

    0 讨论(0)
  • 2021-01-05 06:43

    I think that need use version 3.1.0 - in package org.springframework.core-3.1.0.M2.jar this class presents.

    0 讨论(0)
提交回复
热议问题