2
我使用的是Spring 2.5,但现在使用Spring 4.2.5,所以由于发生此错误,所以我需要知道使用哪个类而不是这个AbstractDependencyInjectionSpringContextTests
。什么是Spring中的AbstractDependencyInjectionSpringContextTests的等价类4.2.5.relese
我使用的是Spring 2.5,但现在使用Spring 4.2.5,所以由于发生此错误,所以我需要知道使用哪个类而不是这个AbstractDependencyInjectionSpringContextTests
。什么是Spring中的AbstractDependencyInjectionSpringContextTests的等价类4.2.5.relese
你应该AbstractJUnit4SpringContextTests
取代看到已废弃注意事项]:1
的例如Spring 3.0的,有利于使用基于收听测试方面 框架(AbstractJUnit4SpringContextTests时)
你能告诉我更多的事情如何取代这种方法? (){ protected String [] getConfigLocations \t return new String [] { \t“applicationContext.xml” –
你不需要该函数。使用autowire byName,请参阅http://www.journaldev.com/2623/spring-autowired-annotation – user7294900