Springboot project startup error 404

Record yourself making a very low-level mistake

There is a Java Tao brother on Bilibili, who gave a tutorial of Shiro, and followed him to learn. When the front-end and back-end were integrated, the page was accessed, and a 404 was reported. After checking all possible problems, they did not find the cause of the problem. Watching the video bit by bit, I found that in the controller layer, the annotation he uses is @Controller, and I use @RestController . I think @RestController includes @Controller. I don’t think it matters. Who knows, it’s really because of the annotation. The reason, but the specific reason why there is such a difference is not yet clear.

Guess you like

Origin blog.csdn.net/mnimxq/article/details/124562552