更新时间:2022-03-08 09:39:53
您将控制器配置为在 /kfc/brands/{name}
URL 上可用,但试图在 ***问它/kfc/brands
.
You configured your controller to be available on /kfc/brands/{name}
URL but trying to access it on /kfc/brands
.
您可以在此处找到有关使用 @RequestMapping
的更多信息:http://docs.spring.io/autorepo/docs/spring/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping
Here you can find more information about using @RequestMapping
: http://docs.spring.io/autorepo/docs/spring/3.2.x/spring-framework-reference/html/mvc.html#mvc-ann-requestmapping