Autowired cannot be resolved to a type;
Question screenshot:
First thought: There should be a missing JAR package. Find the corresponding package as follows:
Click the corresponding class to open the problem as follows:
It should be obvious that there is a problem with the JAR, find the local repository, delete the JAR, and download it again. Right-click the project in Eclipse and expand Run As, then select Maven Install and re-download the JAR package.
You can see the JAR package being downloaded in the console window:
Once the JAR package has been downloaded, the problem can be resolved without incident. This solution is personally measured, not necessarily able to solve your problem, do not like spray! Thanks for communicating!
Question screenshot:
First thought: There should be a missing JAR package. Find the corresponding package as follows:
Click the corresponding class to open the problem as follows:
It should be obvious that there is a problem with the JAR, find the local repository, delete the JAR, and download it again. Right-click the project in Eclipse and expand Run As, then select Maven Install and re-download the JAR package.
You can see the JAR package being downloaded in the console window:
Once the JAR package has been downloaded, the problem can be resolved without incident. This solution is personally measured, not necessarily able to solve your problem, do not like spray! Thanks for communicating!
Read More:
- The corresponding solutions to the problems of various external symbols that cannot be resolved
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- Solution to garbled code problem after importing project in eclipse
- Solution to the problem of no C / C + + option in the new project of eclipse
- After eclipse eclipse eclipse imports the correct project, an error is reported in XML and other files
- How to solve the problem that the project module turns grey in Maven
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- About maven Pom.xml Personal solutions to reporting errors!!!
- Problems in compiling VTK with cmake: solutions to error configuration process, project files may be invalid
- Error in the project tag in the POM file of Maven project: failure to transfer
- Maven project pom.xml Solutions to error reporting
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Solutions to the problem that CodeBlocks cannot be used
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- To solve the problem in Windows opencv installation: error configuration process, project files may be invalid
- How to solve the problem of “version 11 or greater is required” in eclipse 2020
- Eclipse package explorer related problems and Solutions
- Solve the problem that target code version of Maven project sub module in IntelliJ idea is always rolled back
- Error in pom.xml file of sub module of Maven aggregation project
- Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project