public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml"); System.out.println("aaa"); // ServiceReportService service = (ServiceReportService)context.getBean("serviceReportService"); }
原文:http://www.cnblogs.com/w8104254/p/4115108.html