public final class SpringBootVersion extends ObjectSE
Package.getImplementationVersion()
SE を介して jar ファイルから Implementation-Version
SE マニフェスト属性を取得します。このクラスを含む jar ファイルの検索に戻り、マニフェストから Implementation-Version
属性を読み取ります。このクラスは、すべての環境で Spring Boot バージョンを判別できない場合があります。代わりにリフレクションベースのチェックを使用することを検討してください。例: 呼び出す予定の特定の Spring Boot メソッドの存在を確認します。
修飾子と型 | メソッドと説明 |
---|---|
static StringSE | getVersion() 現在の Spring Boot コードベースの完全なバージョン文字列、または判別できない場合は null を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static StringSE getVersion()
null
を返します。null
のバージョン Package.getImplementationVersion()
SE