Skip to content

Spring beans in singleton scope are ignoring default component-scan scoped-proxy configuration [SPR-6683] #11349

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions