Can be directly Baidu keyword: Eclipse compile class file path
http://my.oschina.net/u/224202/blog/55264
Http://jingyan.baidu.com/article/8275fc869f6f0c46a03cf61c.html
http://blog.csdn.net/jbgtwang/article/details/39226889
By the way, Classpathxmlapplicationcontext's grammar.
Writing 1) ApplicationContext context = new Classpathxmlapplicationcontext ("Classpath:*/beans.xml") (with *)
Writing 2) ApplicationContext context = new Classpathxmlapplicationcontext ("Classpath:/beans.xml");
The writing with * Number 1 will give an error. The writing without the * Number 2 is correct.
Exception in thread "main" Org.springframework.beans.factory.NoSuchBeanDefinitionException:No Bean named ' HelloWorld ' is defined
at Org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition ( defaultlistablebeanfactory.java:387)
at Org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition ( abstractbeanfactory.java:968)
at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean ( abstractbeanfactory.java:246)
at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean ( abstractbeanfactory.java:185)
at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean ( abstractbeanfactory.java:164)
at Org.springframework.context.support.AbstractApplicationContext.getBean ( abstractapplicationcontext.java:881)
at Com.csair.test.TestClassPath.main (testclasspath.java:16)