Пример #1
0
 @RequestMapping(
     value = "/getKfkConfig",
     method = {RequestMethod.GET})
 @ResponseBody
 public List<KafkaConfig> getKafkaConfigs(
     @RequestParam(value = "kafkaConfigName", required = false) String kafkaConfigName,
     @RequestParam(value = "limit", required = false) Integer limit,
     @RequestParam(value = "offset", required = false) Integer offset) {
   try {
     return kafkaConfigService.getKafkaConfigs(kafkaConfigName, limit, offset);
   } catch (IOException e) {
     logger.error("Failed to deal with the request:" + e.getLocalizedMessage(), e);
     throw new InternalErrorException(
         "Failed to deal with the request: " + e.getLocalizedMessage());
   }
 }