No qualifying bean of type [com.elven.member.pojo.DrugOrderDetails] found for dependency
[com.elven.member.pojo.DrugOrderDetails]: expected at least 1 bean which qualifies as
autowire candidate for this dependency. Dependency annotations:
{@org.springframework.beans.factory.annotation.Autowired(required=true)}
看报错我们知道我@Autowired 注解注入了实体类!!!
实际上我们一般都注入Dao层的接口
不要使用 @Autowired 注入 实体类!!!