SpringMVC Error: Cannot resolve org.springframework:spring-webmvc:5.2.9.RELEASE

Maven import dependency problem


When adding spring webmvc dependencies, Maven reports an error, while other spring dependencies can be imported.

Cannot resolve org.springframework:spring-webmvc:5.2.9.RELEASE


Query the local Maven warehouse: C:\users\sang\M2\repository, find the package that failed to import, and find that it has been imported.

It is speculated that Maven took a wind when importing dependencies. Delete the folder corresponding to the incorrectly imported dependencies, that is, delete the spring webmvc folder and reload all Maven project in the project

At this point, all dependencies are loaded successfully. However, Maven relies on a library with red wavy lines. Just restart idea.

Similar Posts: