java-scope描述Spring容器新建Bean实例

版权声明:本文为pureszgd原创文章,未经允许不得转载, 要转载请评论留言! https://blog.csdn.net/pureszgd/article/details/84000757
Singleton
@Service
public class DemoSingletonService {

}

@Service
@Scope("prototype")
public class DemoPrototypeService {

}

猜你喜欢

转载自blog.csdn.net/pureszgd/article/details/84000757