今天,在春晚我做了这样的事情:
@Configuration
@ComponentScan(
basePackages = ["br.com.gubee"],
includeFilters = [ComponentScan.Filter(type = FilterType.ANNOTATION, value = [UseCase::class])])
class DomainConfiguration
注解:
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface UseCase
定义我的bean:
@UseCase
class Test
暂无答案!
目前还没有任何答案,快来回答吧!