Note that auto-completion in Eclipse and STS is CTRL+Space
, even on a Mac.
Only the bean element is defined, no nested elements. If you do this first, then when you come to add contructor-arg or property sub-elements, auto-completion can be used to select the ref attribute value (see below).
The STS XML Editor is smart enough to know that the class attribute represents a
fully-qualified Java classname. Type in the first 4 letters of the
classname then use CTRL+Space
to show
all matching classes. Pick one and the FQCN becomes the class attribute value.
The example below shows using auto-completion by typing just the
first letter of each component word in the classname. Thus typing
"RNI" brings up RewardNetworkImpl
and RewardNetworkImplTests
.
Similarly using CTRL+Space
in a
ref attribute presents a list of all
known bean ids. Works for both contructor-arg or property elements.