Merge pull request #5246 from dkapil/task/BAEL-8964
BAEL-8964 Add a section in "NoSuchBeanDefinition" article
This commit is contained in:
commit
aef7b7f9aa
|
@ -0,0 +1,12 @@
|
|||
package com.baeldung.springbootmvc.nosuchbeandefinitionexception;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class BeanA {
|
||||
|
||||
@Autowired
|
||||
BeanB dependency;
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.baeldung.springbootmvc.nosuchbeandefinitionexception;
|
||||
|
||||
public class BeanB {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.baeldung.springbootmvc.nosuchbeandefinitionexception;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class NoSuchBeanDefinitionDemoApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(NoSuchBeanDefinitionDemoApp.class, args);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue