Skip to content

源代码很多配置类注解上很多@ComponentScan导致默认的配置无法去除,无法自定义配置 #71

@zzps

Description

@zzps

Describe the bug

根据自己业务需要在配置zipkin时需要使用自定义的配置类,但是源码中很多@componentscan导致使用了一个默认的配置后就将其他符合条件的配置全激活了,即使我使用springboot技术将源码的自动化配置去掉还是无用
A clear and concise description of what the bug is.

Expected behavior

Actual behavior

Steps to reproduce

Minimal yet complete reproducer code (or GitHub URL to code)

@configuration
@EnableConfigurationProperties(SofaTracerProperties.class)
@componentscan(value = { "com.alipay.sofa.tracer.boot" })
public class SofaTracerAutoConfiguration {
-----------省略
}

Environment

  • SOFATracer version:
  • JVM version (e.g. java -version):
  • OS version (e.g. uname -a):
  • Maven version:
  • IDE version:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions