What is the difference between classes and test-classes : <p>I had a springmvc maven project By IntelliJ Idea,I put the logbak.xml in the <code>src/main/resources</code> folder and another logbak.xml with different configurations in the <code>src/test/resources</code> folder.</p>

<p>When running my Junit Test,the logbak.xml in the test folder worked.
When running my web in tomcat server,the logbak.xml in the main folder worked.</p>

<p>If I had no logbak.xml in test folder,the logbak.xml in the main folder worked.</p>

<p>Why the logbak.xml can't be loaded twice?
How to decide which file can be loaded first when different running above?</p>
