【解决办法】分别创建服务提供者和服务组件,就可以发布成功一个服务
发送POST请求到:http://localhost:8090/iserver/manager/providers.rjson
{
"name": "map-服务名",
"alias": null,
"innerProviders": null,
"type": "com.supermap.services.providers.UGCV5TileProvider",
"config": {
"password": null,
"dataPrjCoordSysType": null,
"watermark": null,
"cacheVersion": "5.0",
"outputPath": "",
"configFile": "",
"s3ConnectionInfo": {
"endpoint": "",
"secretKey": "",
"accessKey": "",
"region": null
},
"cacheMode": null,
"name": null,
"outputSite": "",
"dpi": 0
},
"enabled": true
}
发送POST请求到:http://localhost:8090/iserver/manager/components.rjson
{
"disabledInterfaceNames": "",
"initPriority": 0,
"initOnCreate": false,
"instanceCount": 0,
"name": "map-服务名",
"alias": "map-服务名",
"interfaceNames": "rest",
"type": "com.supermap.services.components.impl.MapImpl",
"config": {
"cacheReadOnly": false,
"cacheConfigs": null,
"cacheResamplingDisabled": false,
"useVectorTileCache": false,
"utfGridCacheConfig": null,
"vectorTileCacheUpdateConfig": null,
"tileCacheConfig": null,
"vectorTileCacheConfig": null,
"expired": 0,
"logLevel": null,
"outputPath": null,
"tileCacheUpdateConfig": null,
"useCache": false,
"outputSite": null,
"useUTFGridCache": false,
"clip": false
},
"providers": "map-服务名",
"enabled": true
}