public final class SpringBootVersion extends ObjectSE
一部の ClassLoaders はパッケージメタデータを公開しないため、このクラスはすべての環境で Spring Boot バージョンを判別できない場合があることに注意してください。代わりにリフレクションベースのチェックを使用することを検討してください。例: 呼び出す予定の特定の Spring Boot メソッドの存在を確認します。
| 修飾子と型 | メソッドと説明 |
|---|---|
static StringSE | getVersion() 現在の Spring Boot コードベースの完全なバージョン文字列、または判別できない場合は null を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static StringSE getVersion()
null を返します。null のバージョン Package.getImplementationVersion()SECopyright © 2019 Pivotal Software, Inc.. All rights reserved.