@Scope诠注使用

@Scope注解使用Annotation中的@Scope注解和xml中的Scope是一样的:这里不多作解释:属性值可以参考xml的Scop

@Scope注解使用

Annotation中的@Scope注解和xml中的Scope是一样的:

这里不多作解释:属性值可以参考xml的Scope作用范围。

@Component("userService")@Scope(value="singeleton")public class UserService {

?