Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 XML 配置配置只读 JMX bean?
官方教程(下面的链接)只说方法上的注释,有没有办法通过 XML 做同样的事情?
http://docs.spring.io/spring/docs/current/spring-framework-reference/html/jmx.html#jmx-interface-metadata
请参阅AbstractConfigurableMBeanInfoAssembler及其子类MethodNameBasedMBeanInfoAssembler等。
另请参阅参考文档中的 MBeanInfoAssembler 接口部分。