初始化Bean
String CONFIG_FILE = "webRoot/WEB-INF/applicationContext.xml";
FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] {CONFIG_FILE});
BeanFactory factory = (BeanFactory) appContext;
ChapterService chapterService = (ChapterService) factory.getBean("chapterService");