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.
Similar Posts:
- Using PSCP to copy data from Windows computer to SSH in Linux_ Init error
- taskdef class org.apache.catalina.ant.InstallTask cannot be found
- git schnnel failed to receive handshake, SSLTLS connection failed
- WebKit focus ring color in Chrome browser
- How to handle the eclipse error message the declared package does not match the expected package
- Product not scheduled in sales organization XXX,distribution channel
- Solve the compilation errors encountered when NPM run build is executed by the library schematics downloaded from the official website of angular
- How to fix error messages related to sap ui5 aggregation with cardinality 0.. 1
- Thinkphp6 Error: constraint violation: 1052 Column ‘id’ in where clause is ambiguous