Guidelines relevant for development of the API Mediation Layer in the IntelliJ IDEA.
- Enable Annotations processing if you haven't done so already (Just go to settings and search for 'annotation')
- Install Lombok plugin. Go to the plugins in the setting and look for the lombok plugin.
- Make sure that the Gradle JVM is set to the JDK 1.8. To set it go to the Settings->Build,Execution,Deployment->Build Tools->Gradle
- Go to 'Services', it is available via alt+8 or on the bottom line of the IDEA.
For each of the available services:
- Right click a service and select 'Edit Configuration' (or press F4 while the service is selected)
- Clear all 'VM options' in the 'Environment' section
- Then under the 'Override parameters' section add a new parameter
spring.config.additional-location
and its valuefile:./config/local/{SERVICE_NAME}.yml
Replace SERVICE_NAME with the following:- ApiCatalogApplication - api-catalog-service
- DiscoverableClientSampleApplication - discoverable-client
- DiscoveryServiceApplication - discovery-service
- EnablerV1SampleApplication - integration-enabler-spring-v1-sample-app
- GatewayApplication - gateway-service
- Run the service