提交 18c9e3e8 编写于 作者: C cac03 提交者: Stephane Nicoll

Fix trivial errors in core-beans documentation

Closes gh-1967
上级 a76b8ded
...@@ -5894,7 +5894,7 @@ in effect, disables automatic detection of classes annotated with `@Component`, ...@@ -5894,7 +5894,7 @@ in effect, disables automatic detection of classes annotated with `@Component`,
Spring components can also contribute bean definition metadata to the container. You can do Spring components can also contribute bean definition metadata to the container. You can do
this with the same `@Bean` annotation used to define bean metadata within `@Configuration` this with the same `@Bean` annotation used to define bean metadata within `@Configuration`
annotated classes. The following example show how to do so: annotated classes. The following example shows how to do so:
==== ====
[source,java,indent=0] [source,java,indent=0]
...@@ -5923,7 +5923,7 @@ factory method and other bean definition properties, such as a qualifier value t ...@@ -5923,7 +5923,7 @@ factory method and other bean definition properties, such as a qualifier value t
the `@Qualifier` annotation. Other method-level annotations that can be specified are the `@Qualifier` annotation. Other method-level annotations that can be specified are
`@Scope`, `@Lazy`, and custom qualifier annotations. `@Scope`, `@Lazy`, and custom qualifier annotations.
TIP: In addition to its role for component initialization, you can also place the `@Lazy` annotation may TIP: In addition to its role for component initialization, you can also place the `@Lazy` annotation
on injection points marked with `@Autowired` or `@Inject`. In this context, it on injection points marked with `@Autowired` or `@Inject`. In this context, it
leads to the injection of a lazy-resolution proxy. leads to the injection of a lazy-resolution proxy.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册