spring框架下 单元测试 @ContextConfiguration(locations = { "/applicationContext.xml" })public class XXXTest extends AbstractJUnit4SpringContextTests {...@Testpublic void testYYY() {XXX xxx = new XXXImpl();xxx .YYY();}