I inject Strings in my spring config by doing the following:
In addition to the other answers and if you're using Spring 3.1+, you can use the constructor namespace.