本文整理匯總了Java中org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar類的典型用法代碼示例。如果您正苦於以下問題:Java SpringApplicationAdminMXBeanRegistrar類的具體用法?Java SpringApplicationAdminMXBeanRegistrar怎麽用?Java SpringApplicationAdminMXBeanRegistrar使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SpringApplicationAdminMXBeanRegistrar類屬於org.springframework.boot.admin包,在下文中一共展示了SpringApplicationAdminMXBeanRegistrar類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: springApplicationAdminRegistrar
import org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar; //導入依賴的package包/類
@Bean
@ConditionalOnMissingBean
public SpringApplicationAdminMXBeanRegistrar springApplicationAdminRegistrar()
throws MalformedObjectNameException {
String jmxName = this.environment.getProperty(JMX_NAME_PROPERTY,
DEFAULT_JMX_NAME);
if (this.mbeanExporter != null) { // Make sure to not register that MBean twice
this.mbeanExporter.addExcludedBean(jmxName);
}
return new SpringApplicationAdminMXBeanRegistrar(jmxName);
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:12,代碼來源:SpringApplicationAdminJmxAutoConfiguration.java
示例2: springApplicationAdminRegistrar
import org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar; //導入依賴的package包/類
@Bean
public SpringApplicationAdminMXBeanRegistrar springApplicationAdminRegistrar()
throws MalformedObjectNameException {
String jmxName = this.environment.getProperty(JMX_NAME_PROPERTY,
DEFAULT_JMX_NAME);
if (this.mbeanExporter != null) { // Make sure to not register that MBean twice
this.mbeanExporter.addExcludedBean(jmxName);
}
return new SpringApplicationAdminMXBeanRegistrar(jmxName);
}
開發者ID:philwebb,項目名稱:spring-boot-concourse,代碼行數:11,代碼來源:SpringApplicationAdminJmxAutoConfiguration.java