@RestController @RequestMapping(value="/api") public class ApiController extends Object
| 构造器和说明 |
|---|
ApiController(MicroRestClient microRestClient,
Map<String,String> apiServices) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
accessDatabaseConnection(String serviceName,
Map<String,String> requestParams,
Map<String,String> requestHeaders,
String requestBody,
javax.servlet.http.HttpServletRequest request) |
@Autowired public ApiController(MicroRestClient microRestClient, Map<String,String> apiServices)
@RequestMapping(value="{serviceName}/**",
method={GET,POST,PUT,PATCH,DELETE})
public Object accessDatabaseConnection(@PathVariable
String serviceName,
@RequestParam
Map<String,String> requestParams,
@RequestHeader
Map<String,String> requestHeaders,
@RequestBody(required=false)
String requestBody,
javax.servlet.http.HttpServletRequest request)
throws URISyntaxException,
IOException,
org.apache.http.MethodNotSupportedException
URISyntaxExceptionIOExceptionorg.apache.http.MethodNotSupportedExceptionCopyright © 2019 GTMAP. All rights reserved.