2017-09-10 34 views

回答

0

你应该AbstractJUnit4SpringContextTests取代看到已废弃注意事项]:1

例如Spring 3.0的,有利于使用基于收听测试方面 框架(AbstractJUnit4SpringContextTests时)

+0

你能告诉我更多的事情如何取代这种方法? (){ protected String [] getConfigLocations \t return new String [] { \t“applicationContext.xml” –

+0

你不需要该函数。使用autowire byName,请参阅http://www.journaldev.com/2623/spring-autowired-annotation – user7294900

相关问题