このバージョンはまだ開発中であり、まだ安定しているとは見なされていません。最新の安定バージョンについては、Spring Boot 3.5.4 を使用してください! |
Bean (beans
)
beans
エンドポイントは、アプリケーションの Bean に関する情報を提供します。
Bean の取得
Bean を取得するには、次の curl ベースの例に示すように、GET
リクエストを /actuator/beans
に作成します。
$ curl 'http://localhost:8080/actuator/beans' -i -X GET
結果のレスポンスは次のようになります。
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Content-Length: 1155
{
"contexts" : {
"application" : {
"beans" : {
"org.springframework.boot.webmvc.autoconfigure.actuate.web.WebMvcEndpointManagementContextConfiguration" : {
"aliases" : [ ],
"dependencies" : [ ],
"scope" : "singleton",
"type" : "org.springframework.boot.webmvc.autoconfigure.actuate.web.WebMvcEndpointManagementContextConfiguration"
},
"org.springframework.boot.http.converter.autoconfigure.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration" : {
"aliases" : [ ],
"dependencies" : [ ],
"scope" : "singleton",
"type" : "org.springframework.boot.http.converter.autoconfigure.JacksonHttpMessageConvertersConfiguration$MappingJackson2HttpMessageConverterConfiguration"
},
"org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration" : {
"aliases" : [ ],
"dependencies" : [ ],
"scope" : "singleton",
"type" : "org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration"
}
}
}
}
}
レスポンス構造
レスポンスには、アプリケーションの Bean の詳細が含まれます。次の表に、レスポンスの構造を示します。
パス | タイプ | 説明 |
---|---|---|
|
| ID をキーとするアプリケーションコンテキスト。 |
|
| 親アプリケーションコンテキストの ID(存在する場合)。 |
|
| 名前をキーとするアプリケーションコンテキストの Bean。 |
|
| エイリアスの名前。 |
|
| Bean の範囲。 |
|
| Bean の完全修飾型。 |
|
| Bean が定義されたリソース(ある場合)。 |
|
| 依存関係の名前。 |