将您的meta-INF文件夹放在src / main / resources中。
把它放在你的pom.xml上。
<build><plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.0.0</version> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <classpathPrefix>lib/</classpathPrefix> </manifest> </archive> <webResources> <resource> <!-- this is relative to the pom.xml directory --> <directory>${project.basedir}/src/main/resources </directory> </resource> </webResources> <warName>mywar</warName> </configuration> </plugin></plugins></build>网络资源标签很重要…希望能有所帮助



