Spring出现:No qualifying bean of type [com.exe.demo01.ch1.di.UseFunctionService] is defined的解决办法

1.编写功能类的Bean 2.使用功能类的Bean 3.配置类 4.运行 以上为正确的代码! 出现No qualifying bean of type [com.exe.demo01.ch1.di.UseFunctionService] is defined错误的原因如下: 1.在配置类中忘记扫描包,或扫描的包路径写错 2.在运行的main方法中,.使用AnnotationConfigApplic
相关文章
相关标签/搜索