首页  

springboot 接口 post 报错 Cannot generate variable name for non-typed Collection parameter type     所属分类 springboot 浏览量 27
springboot 2.7.10

springboot 接口 post 报错 Cannot generate variable name for non-typed Collection parameter type


动态更新 prometheus http 动态服务发现 服务信息 
post 
http://127.0.0.1:8090/updateService

[
  {
    "targets": [
      "192.168.10.10:8030",
      "192.168.10.11:8030",
      "192.168.10.12:8030"
    ],
    "labels": {
      "__meta_prometheus_job": "doris2"
    }
  },
  {
    "targets": [
      "192.168.10.10:9114",
      "192.168.10.11:9114",
      "192.168.10.12:9114"
    ],
    "labels": {
      "__meta_prometheus_job": "es2"
    }
  }
]



static volatile List services; @RequestMapping("/updateService") public synchronized static Object updateService(@RequestBody List list) { services = list; return list; } // 使用泛型 增加类型信息后 ok @RequestMapping("/updateService") public synchronized static Object updateService(@RequestBody List< Map< String,Object>> list) { services = list; return list; }

上一篇     下一篇
rabbitmq 管理页面

RabbitMQ 消息发送和消费过程

Flink JobManager与TaskManage 运行架构

prometheus file_sd_config 基于文件的服务发现

MAC 安装 rabbitmq

rabbitmq prometheus插件 和 rabbitmq-exporter