package org.example;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ProjectConfig {

@Bean
public Parrot parrot1() {
Parrot p = new Parrot();
p.setName("Koko");
return p;
}
@Bean
public Parrot parrot2() {
Parrot p = new Parrot();
p.setName("Miki");
return p;
}

@Bean
public Person person(Parrot parrot2) {
Person p = new Person();
p.setName("Ella");
p.setParrot(parrot2);
return p;
}
}

이거 제미나이한테 물어보니까 Qualifier 쓰라는데 안쓰고는 못함?