Resource res = new ClassPathResource("bean.xml");
BeanFactory factory = new XmlBeanFactory(res);
Messages mess = (Messages)factory.getBean("OP1");
System.out.println("Message:" + mess.getValue());Messages为实体类
在使用上面的方法时,一直会出现[DEBUG][2011-07-15 18:18:40.773] Class [org.apache.commons.collections.map.CaseInsensitiveMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: org.apache.commons.collections.map.CaseInsensitiveMap
[DEBUG][2011-07-15 18:18:40.773] Class [edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or one of its dependencies is not present: java.lang.ClassNotFoundException: edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
[INFO][2011-07-15 18:18:40.805] Loading XML bean definitions from class path resource [bean.xml]
[DEBUG][2011-07-15 18:18:40.805] Using JAXP provider [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl]
[DEBUG][2011-07-15 18:18:40.836] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath: spring-beans.dtd
[DEBUG][2011-07-15 18:18:40.852] Loading bean definitions
[DEBUG][2011-07-15 18:18:40.883] Creating shared instance of singleton bean 'OP1'
[DEBUG][2011-07-15 18:18:40.883] Creating instance of bean 'OP1'
[DEBUG][2011-07-15 18:18:40.898] Eagerly caching bean 'OP1' to allow for resolving potential circular references
[DEBUG][2011-07-15 18:18:40.898] Finished creating instance of bean 'OP1'这个日志怎么去除掉呢???