http上如何输入对应的controller的问题

package com.ywyl.sh.mqtt.modules.mqtt.controller;

import...
@Controller
@RequestMapping("/api/v1/iot")
public class IotController extends BaseController {
    private final static Logger logger = LoggerFactory.getLogger(IotController.class);

    @Autowired
    IotService iotService;

    @Autowired
    DeviceService deviceService;

    @Autowired
    UrlConfigBean urlConfigBean;

    @Value("${jwt.token}")
    String token;

    @GetMapping("getToken")
    public @ResponseBody
    String getToken(HttpServletRequest httpServletRequest) throws Exception {
        return toJson(iotService.getToken(),httpServletRequest);
    }

    @GetMapping("insertMachines")
    public @ResponseBody Object insertMachines(@RequestParam("machineId")String machineId,
                                               HttpServletRequest request) throws Exception {
        System.out.println(token);
        CommResponse<IotMachineResultDto> result = new Gson().fromJson(HttpRequestUtil.sendGet(urlConfigBean.getBackUrlHead()+urlConfigBean.getCrud()+"api/v1/machine/insertMachines","machineId="+machineId,token,1),CommResponse.class);
        if (result.getStatus()==1){
            return toJson("添加设备失败或设备ID重复",request);
        }
        return result.getBody();
    }

请问如果要使用insertMachines的话,在postman上输入的localhost:接口号/api/v1/iot/insertMachines?machineId=35rteh5hr5ye5egs输出错误,应该怎么改呢?

postman响应头选择GET,输入http://localhost:接口号/api/v1/iot/insertMachines?machineId=35rteh5hr5ye5egs
如果点击send,如果出错,只能说不在路径问题,而是你的代码里的方法出问题了,比如500,400等等,如果路径有问题,一般都是404,对于代码报错,你可以对你的当方法进行检验,通过控制台打印来确定位置,报错了的话在有问题的方法下面打印的内容不会出现