Hi,
I’m currently doing API testing and I keep getting 404 not found errors.
@RestController
@RequestMapping(value = "/api")
public class ApiCommonController {
@RequestMapping(value = "/get/postmantest", method = {RequestMethod.GET})
public String GetMappingTest (@RequestParam int id) {
return "Get Mapping : " + id;
}
I sent a request to an endpoint address such as http://localhost:7771/api/get/postmantest?id=15 using Get, but I get a 404 not found error
I don’t think there’s a typo in the endpoint address, but I don’t know what the problem is.
I’d like some advice