如图,访问不到
新增加一个Controller,用postman 请求http://192.168.0.103:9999/jshERP-boot/IfsCatalogService/getAllIfsCatalog?id=1 ,报404,请问还需要增加什么请求参数?求大佬们告知@RestController
@RequestMapping("/IfsCatalogService")
@AllArgsConstructor
@Slf4j
@Api(value = "零件目录", tags = "零件目录")
public class IfsCatalogController {
@Resource
public IfsCatalogService ifsCatalogService;
@RequestMapping(value = "/getAllIfsCatalog", method = RequestMethod.GET, produces = "application/json")
@ResponseBody
@ApiOperation(value = "查询所有零件目录", notes = "查询所有零件目录")
public String getAllContract(int id) {
try{
List<IfsCatalog> ifsCatalogs= ifsCatalogService.getAllIfsCatalog(id);
return "1";
}catch (Exception e){
return "0";
}
}
}
调接口要带token jishenghua 发表于 2021-10-11 22:29 static/image/common/back.gif
调接口要带token
获取了 token 后:“token": "e5120ac84f234005a7d66805c5db5a1f_63",如下图,返回LoginOut,请问token是这样放么?还是放在其他地方,能否指导下??
页:
[1]