title: How can I insert a delay on every request on a Spring Boot application?
body: <p>I need to test how my client application will behave when the server is far away and the connection is not great. The client is a JavaFX application using Spring's RestTemplate and the server is a RESTful Spring Boot application.</p>
  
  <p>How can I artificially inject a delay on <strong>every</strong> request the server gets?</p>