version=1.0.0-SNAPSHOT
groupId=com.listao
artifactId=listao-boot
hutool地址open in new window
@PostMapping("/edition")
public String edition() {
return new Props("META-INF/maven/com.listao/spring_boot/pom.properties").getProperty("version");
}
Manifest-Version: 1.0
Created-By: Maven Archiver 3.4.0
Build-Jdk-Spec: 17
Implementation-Title: spring_boot
Implementation-Version: 1.0-SNAPSHOT
Main-Class: org.springframework.boot.loader.JarLauncher
Start-Class: com.listao.spring_boot.Application
Spring-Boot-Version: 2.2.2.RELEASE
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
info:
project: spring_boot
version: @revision@
author: listao
description: boot_demo
@Component
@ConfigurationProperties(prefix = "info")
@Data
public class ArtifactInfo {
private String project;
private String version;
private String author;
private String description;
}