Intellij does not automatically prompt for code completion, nor does @ RestController automatically set the relevant configuration, as shown in the figure below.

clipboard.png

clipboard.png


out of the IDE settings, but also to determine whether the spring package is not in class path , if it is Maven project or gradle project, whether there is a dependency to add spring


should not be introduced the relevant jar package, you can try the code provided in jdk to see if he has automatic completion, if there is a jar package problem, if not it should be a configuration problem.


have you checked

in this place?

clipboard.png

Menu