<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<archiveClasses>true</archiveClasses>
<packagingExcludes>WEB-INF/web.xml</packagingExcludes>
<warSourceExcludes>WEB-INF/classes/cn/**</warSourceExcludes>
<webResources>
<resource>
<directory>src/main/resources</directory>
<targetPath>WEB-INF/classes</targetPath>
<includes>
<include>**</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
不理解,配置这样:
WEB-INF/classes/cn/**
tomcat 是怎么加载 class 文件的呢