I inject Strings in my spring config by doing the following:
There is no need to create a bean of type String. Just pass the value to constructor-arg:
String
constructor-arg
works.