Error message:
Trying to inject a value, but actually debugconfig is defined as an interface, just a type:
After replacing the interface with abstract class, the problem is solved
Class declares a value and a type. You can assign man to a variable, so class is a value. In other words, imgss is a man (type). Man plays the role of a type
Interface declares a type, but you can’t assign dogfoot to a variable, otherwise you will get an error “dogfoot” only refers to a type, but is being used as a value here`
to get more original articles of Jerry, please pay attention to the official account of “Wang Zixi”:
This article shares CSDN – Wang Zixi.