Solve the problem of @RestController and @RequestMapping becoming popular

Insert image description here
Insert image description here

It turns out that these two blocks are both red, and there is no response no matter how I import the package. I tried various methods online. Finally, I got so angry that I deleted all the local Maven repositories and tried again. The problem was solved. . .

  1. The default location of Maven's local warehouse is C:\Users\username.m2\repository. Delete the entire repository folder directly.

  2. Right-click pom.xml->maven->reload project, and wait for a short while.

    If the download is too slow, you can try pulling the Alibaba Cloud image. There are many methods on the Internet, so I won’t explain them one by one.

Guess you like

Origin blog.csdn.net/Willow_K/article/details/126409662