Configuring the service

Feedback


All services of SuperMap iServer are configured through the configuration file. For details, see: iServer configuration file instruction. The domain services are custom service, so the configuration information of the component needs to be added in iserver-services.xml. Since this example only implemented a service component, so here only the configuration of the Temperature service component is involved.

Set a new component node, the contents are as follows:

<!-- Temperature component -->

<component name="Temperature" class="com.supermap.sample.temperature.Temperature" providers="" interfaceNames="rest">

    <config></config>

</component>

Note: Since the service interface here hasn't been implemented yet, we can temporarily set it as a REST interface.