在 Maven 项目中,BOOT-INF/lib
目录通常位于打包后的 JAR 文件内部。如果你希望查看 BOOT-INF/lib
的绝对路径,
1、配置maven打包的依赖
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layout>ZIP</layout>
<includes>
<include>
<groupId>nothing</groupId>
<artifactId>nothing</artifactId>
</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions&