I want to use Spring XML configuration to announce that the bean's initialization depends on the other bean. Wrinkling is that there is a need to deal with Bean ID, which includes spaces, such as:
attribute can accept a separate list from a white spot of the Bean ID; Spring thinks it is looking for two beans for Bean B to depend on Bean and A .
dependent-on Is there any way to make an announcement that it is correctly Bean A
Note: Comment or answer only "Bean Do not use spaces in the id "? Useful; This question is not about the qualifications of that idiom / convention.
According to the documentation - one considers white space as one of the hypotheses It limits the number of spaces with beans or ids in the name, one way to go around is to create a nickname for the beans, which keeps the spaces in them and depending on the section depending on them.
& lt; Alias name = "bean with place" alias = "alias" />
No comments:
Post a Comment