Giriş
Şu satırı dahil 
ederiz.
import org.springframework.stereotype.Service;
constructor - string
Şöyle 
yaparız.
@Service("fooImpl")
public class FooImpl implements Foo {
  ...
}
Şöyle 
yaparız.
ApplicationContext applicationContext = ...;
Foo foo = (Foo) applicationContext.getBean("fooImpl");
 
 
Hiç yorum yok:
Yorum Gönder