> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/v.-spring-boot-actuator/50.-endpoints/50.8-implementing-custom-endpoints/50.8.4-controller-endpoints.md).

# 50.8.4 Controller端点

`@ControllerEndpoint`和`@RestControllerEndpoint`可用于实现仅由Spring MVC或Spring WebFlux暴露的端点。方法使用标准注解Spring MVC和Spring WevFlux注解(如`@RequestMapping`和`@GetMapping`)进行映射，端点的ID用作路径的前缀。Controller端点提供了与Spring的web框架更深入的集成，但这是以可移植性为代价的。只要可能，应该首选`@Endpoint`和`@WebEndpoint`注解。
