title: How manage working with multiple microservices and mocking them in a development (not test) environment?
body: <p>I'm using Spring Boot 1.5.9 and we have a micro service that connects with another micro services.</p>
  
  <p>For integration test and <strong>development</strong> (the developer computer) I would like to mock/stub the rest calls made for another micro services. For unit/integration tests this question is already answered many times: WireMock, MockBean and MockRestServiceServer are good tools. But <strong>for development</strong> I'm trying to figure out the best approach.</p>
  
  <p>Why? Is a problem to start each microservice that the actual microservice depends. So the idea is make the microservice independent and start without any additional server running in the developer's machine or on other place. So, a simple `mvn spring-boot run' would be enough to start my microservice and work without any concern about another microservices.</p>
  
  <p>So, my question is: what the recommended aproach for mock/stub rest calls in development? Wiremock is a good approach in this case too?</p>
  
  <h1>My project</h1>
  
  <p>I have two profiles in <code>src/main/java/resources/</code>: the 'default' (application.properties, that's used for another environment) and the 'dev' (application-dev.properties, used for development).</p>
  
  <p>In my tests (<code>src/test/java/resources/</code>) I have only one application.properties, that is basic a copy of application-dev.properties.</p>
  
  <p>I already try to use Wiremock for integration tests and works well. But I would not like to use it for development too because I don't like so much the idea to introduce a dependency only used for development in my JAR. My intention is use the same strategy to integration test and development.</p>
  
  <p>So, what's the options?</p>