Somebody knows an standard naming to the Spring beans in a App Context?
I used the camel case naming, but I'm not sure if exists an kind of standard, I searched in the net about that but I haven't found something.
Somebody knows an standard naming to the Spring beans in a App Context?
I used the camel case naming, but I'm not sure if exists an kind of standard, I searched in the net about that but I haven't found something.
Are you not using annotations? If you do then you don't need to follow any bean id naming convention.
If not (for whatever strange reasons) then camelCase is right. But the naming convention has to indicate which layer the bean belongs and ofcourse the name should correspond to the class its going to be injecting.
Hope that helps.
Bean Naming Conventions (Spring Manual section 3.3.1)
camelCase seems right! For bean Id's, the naming convention would be same as Java class field name. The bean ID for an instance of ServiceDAO would be serviceDAO. The package name can be prefixed to the bean ID for larger projects.