Dependency « Binding « Spring Q&A





1. Spring injection bind toInstance    stackoverflow.com

Is there a way to bind an injected object to a specific instance using Spring DI similar to Google Guice's

bind(MyClass.class).toInstance(myclassobject);