The @Bean annotation returns an object that spring should register as a ... getBean() accepts the alias name, and we need to typecast it to the bean type.
確定! 回上一頁