将静态资源文件打到war指定目录下
<build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <configuration> <!--将静态资源文件打到war指定目录下--> <webResources> <resource> <!--将资源文件所在路径(当前项目下)--> <directory>WebContent</directory> <!--war目标路径--> <targetPath>/jrzh/pages</targetPath> <filtering>false</filtering> </resource> </webResources> </configuration> </plugin> </plugins> </pluginManagement> </build>