spring exception work
This commit is contained in:
parent
27d0f43589
commit
8871fc802e
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
package org.baeldung.ex.nosuchbeandefinitionexception.cause3;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class BeanB implements IBeanB {
|
||||
//
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
package org.baeldung.ex.nosuchbeandefinitionexception.cause3;
|
||||
|
||||
public interface IBeanB {
|
||||
//
|
||||
}
|
Loading…
Reference in New Issue