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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30582-2b253.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30582-2b253.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?