错误代码如下:
写道
No unique bean of type [com.......AreaDao] is defined: Unsatisfied dependency of type [interface com.......AreaDao]: expected at least 1 matching bean
其中dao未注解。
自动注入的时候,找不到对应的bean
原因是:对应要注入的实现类没有 加注解,如dao层 @Repository 如service层 @Service