org.springframework.beans.factory.BeanCreationException: inject bean abnormal failure
This exception, I could not find the corresponding bean it! Bean failure can result in injection reasons include the following but are not limited to these types of:
- Corresponding bean not add annotations;
- Corresponding bean add annotations error;
- Choosing the wrong automatic injection method;
Solution
Know the cause of this exception occurs, then we went to see the corresponding Bean statement, the relevant code injection were observed.