spring exception work

This commit is contained in:
eugenp 2013-07-05 12:09:10 +03:00
parent 27d0f43589
commit 8871fc802e
3 changed files with 3 additions and 16 deletions

View File

@ -12,8 +12,8 @@ public class BeanA implements InitializingBean {
private ApplicationContext context;
@Override
public final void afterPropertiesSet() {
context.getBean("test");
public void afterPropertiesSet() {
context.getBean("someBeanName");
}
}
}

View File

@ -1,8 +0,0 @@
package org.baeldung.ex.nosuchbeandefinitionexception.cause3;
import org.springframework.stereotype.Component;
@Component
public class BeanB implements IBeanB {
//
}

View File

@ -1,5 +0,0 @@
package org.baeldung.ex.nosuchbeandefinitionexception.cause3;
public interface IBeanB {
//
}