spring_reference/IV. Spring Boot features/34. Monitoring and manageme...

4 lines
523 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 34. 基于JMX的监控和管理
Java管理扩展JMX提供了一个标准的用于监控和管理应用的机制。默认情况下Spring Boot将创建一个id为mbeanServer的MBeanServer并导出任何被Spring JMX注解@ManagedResource,@ManagedAttribute,@ManagedOperation的beans。具体参考[JmxAutoConfiguration类](http://github.com/spring-projects/spring-boot/tree/master/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/JmxAutoConfiguration.java)。