(1)Maybe, error is here: ApplicationContext ctx = new FileSystemXmlApplicationContext("test.xml"); xxImpl monitor = ctx.getBean(xxImpl.class); ApplicationContext ctx = new ClassPathXmlApplicationContext("file:spring-configuration/unit-testing/application-config.xml"); Main main = ctx.getBean(Main.class);(2) Changed xxImpl, use @Autowired(3) don't foget add CGLib(4) it works.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货