Spring beans in singleton scope are ignoring default component-scan scoped-proxy configuration [SPR-6683] #11349
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Mauricio Noda opened SPR-6683 and commented
<context:component-scan base-package="somePackage" scoped-proxy="targetClass" />
It doesn´t matter what is configured in the scoped-proxy attribute, singleton scoped beans defaults to "no" and they have to be all configured explicity in a one-by-one basis using
@Scope
(proxyMode = TARGET_CLASS).It generates a lot of annoying java.io.NotSerializableException in common web applications until all singletons are found and have their proxyMode attribute set.
Affects: 3.0 GA
Referenced from: commits abdc35c, 56d2c9d
The text was updated successfully, but these errors were encountered: