Spring Boot @GetMapping Annotation: Mapping HTTP GET Requests
The correct annotation is "@GetMapping". \n\nThe "@GetMapping" annotation is used to map HTTP GET requests onto specific handler methods. It is a composed annotation that acts as a shortcut for "@RequestMapping(method = RequestMethod.GET)".
原文地址: https://www.cveoy.top/t/topic/p9hL 著作权归作者所有。请勿转载和采集!