spring 容器
?
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext(); PageContainer pageContainer = (PageContainer) wac.getBean("pageContainer"); System.out.println(pageContainer.getMaxNum());