Spring Conditional Configuration / Bean

참조