珠峰高級工程師2022
demo
@Repository("dao")public class StudentDao {}
@Servicepublic class StudentService {
? ?@Qualifier("dao")
? ?@Autowired
? ?private StudentDao studentDao;}
源碼
@Target({ElementType.TYPE, ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface Primary {}
標(biāo)簽: