All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.datalking.annotation.Qualifier Maven / Gradle / Ivy

The newest version!
package com.github.datalking.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 在候选Bean数目不为1时,可以使用@Qualifier注解直接指定bean名称
 *
 * @author yaoo on 5/29/18
 */
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface Qualifier {

    String value() default "";

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy