Skip to content

Doc: @Component bean auto naming working differently for two capital letter start [SPR-14272] #18844

Closed
@spring-projects-issues

Description

@spring-projects-issues

Heartin opened SPR-14272 and commented

If my class name start with two capital letters and I annotate with @Component, the auto generated name starts with capital letter. Else it starts with small letter.

JJwriterComp gives JJwriterComp
JaaJwriterComp gives jaaJwriterComp

I could not find any reference for this difference in any documentation.


Backported to: 4.2.7

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions