spring exception work
This commit is contained in:
parent
27d0f43589
commit
8871fc802e
@ -12,8 +12,8 @@ public class BeanA implements InitializingBean {
|
|||||||
private ApplicationContext context;
|
private ApplicationContext context;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final void afterPropertiesSet() {
|
public void afterPropertiesSet() {
|
||||||
context.getBean("test");
|
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…
x
Reference in New Issue
Block a user