|
对于最新稳定版本,请使用Spring Boot 4.0.0! |
豆子(豆)
这豆端点提供关于应用程序 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: 1089
{
"contexts" : {
"application" : {
"beans" : {
"org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration" : {
"aliases" : [ ],
"scope" : "singleton",
"type" : "org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration",
"dependencies" : [ ]
},
"org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration" : {
"aliases" : [ ],
"scope" : "singleton",
"type" : "org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration",
"dependencies" : [ ]
},
"org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration" : {
"aliases" : [ ],
"scope" : "singleton",
"type" : "org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration",
"dependencies" : [ ]
}
}
}
}
}
响应结构
回复中包含了申请豆子的详细信息。 下表描述了该反应的结构:
| 路径 | 类型 | 描述 |
|---|---|---|
|
|
应用程序上下文由ID键入。 |
|
|
如果有,请提供父应用上下文的ID。 |
|
|
在应用上下文中,Beans 按名称键入。 |
|
|
任何别名的名字。 |
|
|
范围。 |
|
|
完全合格的咖啡Beans型。 |
|
|
如果有的话,是定义豆子的资源。 |
|
|
任何依赖的名称。 |