REFERENCE:
1. 60 seconds entry tutorial: http://gabriel.jarchitect.org/spring/index.html
The required JAR file includes: Spring-core.jar, common-logging.jar, in the IDEA, the directory running the Java virtual machine is not a classes directory, so it can't find the "bean.xml" file in the current directory, use the following Code:
Import org.springframework.core.io. *;
/ * Read the configuration file from classpath * / resource res = new classpathresource ("bean.xml"); xmlbeanfactory factory = new xmlbeanfactory (res);