I'm looking to optimize the time it takes to load up my web application that depends on Spring. One of the suggestions I've heard is to turn off XML Schema validation. Is this easy to do? If so, how? I received the following suggestion from Dan Diephouse, but I'm not directly interacting with the ClassPathXmlApplicationContext - I'm using the ContextLoaderListener and AbstractTransactionalDataSourceSpringContextTests.
Code:@Override protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) { super.initBeanDefinitionReader(reader); reader.setValidationModeName(XmlBeanDefinitionReader.VALIDATION_NONE); }


Reply With Quote
