提交 9735c802 编写于 作者: C Chris Beams

@Scope is now allowed on methods (for use in conjunction with @Bean)

上级 100ba659
/*
* Copyright 2002-2007 the original author or authors.
* Copyright 2002-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -31,9 +31,10 @@ import org.springframework.beans.factory.config.BeanDefinition;
* '<code>singleton</code>', '<code>prototype</code>', and so forth.
*
* @author Mark Fisher
* @author Chris Beams
* @since 2.5
*/
@Target(ElementType.TYPE)
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Scope {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册