0
當我構建我的Spring引導項目時,它也會創建一個目標文件夾和 target/classes,但它不會創建任何META-INF。我也包括依賴 -maven不會爲spring引導項目創建META-INF
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<index>true</index>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
<manifestEntries>
<mode>development</mode>
<url>${project.url}</url>
<key>value</key>
</manifestEntries>
</archive>
</configuration>
https://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR – nullpointer