I have one utility class where i have one method which requires username and password to connect other url. I need to kept that username in properties file so that i can change
Spring doesn't allow to inject values into non-final static fields but make your field private and it should works.