Tag Archives: Highlights of issues in development

Solutions to the problem of “Autowired cannot be resolved to a type” in eclipse Maven project

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!