Auto-configuration employs the Spring Core container and takes places when both of the following are true.
自动配置利用了Spring核心容器的功能,当下面两个条件都满足的情况下可以生效。
2
Per the CDI specification, whenever the ManageCustomer bean instance is instantiated by a container, the CustomerService bean instance will be auto injected in it.