Skip to content

bean名称标准处理#81

Open
smallpleasures wants to merge 1 commit intoDerekYRC:package-scanfrom
smallpleasures:package-scan
Open

bean名称标准处理#81
smallpleasures wants to merge 1 commit intoDerekYRC:package-scanfrom
smallpleasures:package-scan

Conversation

@smallpleasures
Copy link
Copy Markdown

Spring源码中Bean名称并不是简单类名的首字母小写,形象一点说Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays as "URL".

@DerekYRC
Copy link
Copy Markdown
Owner

@smallpleasures 谢谢你的PR,作为一个学习类的项目,这块就不做特殊处理了,方便理解

@DerekYRC
Copy link
Copy Markdown
Owner

先关闭该PR了哈

Senrian pushed a commit to Senrian/mini-spring that referenced this pull request Feb 28, 2026
Use Introspector.decapitalize to follow Spring's bean naming rules:
- 'URL' stays as 'URL' (not 'uRL')
- 'X' becomes 'x'
- 'FooBah' becomes 'fooBah'

Fixes: DerekYRC#81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants