Skip to content

Commit ae7d520

Browse files
authored
Fix @scope documentation in ref docs
Closes gh-26773
1 parent ff9b68c commit ae7d520

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/docs/asciidoc/core/core-beans.adoc

+4-2
Original file line numberDiff line numberDiff line change
@@ -8238,8 +8238,10 @@ Spring offers a convenient way of working with scoped dependencies through
82388238
<<beans-factory-scopes-other-injection, scoped proxies>>. The easiest way to create
82398239
such a proxy when using the XML configuration is the `<aop:scoped-proxy/>` element.
82408240
Configuring your beans in Java with a `@Scope` annotation offers equivalent support
8241-
with the `proxyMode` attribute. The default is no proxy (`ScopedProxyMode.NO`),
8242-
but you can specify `ScopedProxyMode.TARGET_CLASS` or `ScopedProxyMode.INTERFACES`.
8241+
with the `proxyMode` attribute. The default is `ScopedProxyMode.DEFAULT`, which
8242+
typically indicates that no scoped proxy should be created unless a different default
8243+
has been configured at the component-scan instruction level. You can specify
8244+
`ScopedProxyMode.TARGET_CLASS`, `ScopedProxyMode.INTERFACES` or `ScopedProxyMode.NO`.
82438245

82448246
If you port the scoped proxy example from the XML reference documentation (see
82458247
<<beans-factory-scopes-other-injection, scoped proxies>>) to our `@Bean` using Java,

0 commit comments

Comments
 (0)