http://www.edwith.org/boostcourse-web * Java Config를 이용해 설정하기 ApplicationConfig.javapackage kr.or.connect.diexam01; import org.springframework.context.annotation.*; @Configuration public class ApplicationConfig { @Bean public Car car(Engine e) { Car c = new Car(); c.setEngine(e); return c; } @Bean public Engine engine() { return new Engine(); } }@Configuration 은 스프링 설정 클래스라는 의미를 가진다.JavaConfig로 ..