eclipse+maven src/main/resources目錄new folder實際爲package的方法:
切換至Navigator prespective-->.classpath文件,可以看到:
<classpathentry kind="src" path="src/main/resources"/>
將其替換爲:
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
pomderived查有道無此詞,猜測爲pom + derive(派生),應該就是缺少此attribute導致問題的出現.