类 ArthasConfiguration

java.lang.Object
com.alibaba.arthas.spring.ArthasConfiguration

@ConditionalOnProperty(name="spring.arthas.enabled", matchIfMissing=true) @EnableConfigurationProperties(ArthasProperties.class) public class ArthasConfiguration extends Object
作者:
hengyunabc 2020-06-22
  • 构造器详细资料

    • ArthasConfiguration

      public ArthasConfiguration()
  • 方法详细资料

    • arthasConfigMap

      @ConfigurationProperties(prefix="arthas") @ConditionalOnMissingBean(name="arthasConfigMap") @Bean public HashMap<String,String> arthasConfigMap()
       1. 提取所有以 arthas.* 开头的配置项,再统一转换为Arthas配置
       2. 避免某些配置在新版本里支持,但在ArthasProperties里没有配置的情况。
       
    • arthasAgent

      @ConditionalOnMissingBean @Bean public ArthasAgent arthasAgent(@Autowired @Qualifier("arthasConfigMap") Map<String,String> arthasConfigMap, @Autowired ArthasProperties arthasProperties) throws Throwable
      抛出:
      Throwable