Produces annotation identifies a specific method as a producer method which is called whenever another bean in the system needs an injected object of the specified type.
Produces注解会将某个方法标识为生产方法,这样同一个系统下的另一个Bean如果需要该类型的对象就会调用这个生产方法。
Produces annotation identifies a specific method as a producer method which is called whenever another bean in the system needs an injected object of the specified type.
Produces注解会将某个方法标识为生产方法,这样同一个系统下的另一个Bean如果需要该类型的对象就会调用这个生产方法。
应用推荐