最近在写微服务,用到了feign
服务消费者写法,用到了POST
```java
@RequestMapping(value="knowledge/graph/add/column_metadata",method=RequestMethod.POST)
public Map<String, Object> createColumn_Metada(@RequestBody Column_Medata column_medata);
服务提供者写法,默认是POST
```java
@RequestMapping("graph/add/column_metadata")
public Map<String, Object> createColumn_Metada(@RequestBody Column_Medata column_medata) {
Map<String, Object> result = new HashMap<>();
Map<String, String> map = new HashMap<>();
result = knowledgeGraphService.addSingleDataSet(column_medata.getTableid(), map, map, map, map, column_medata.getDatasourcename());
}
return result;
}