As you have probably guessed, Remote Restart involves an agent running locally and sending instructions to the remote client. DevTools provides an implementation of such an agent—RemoteSpringApplication:
- In order to enable Remote Restart, we need to add a property to application.properties located under the src/main/resources directory from the root of our project with the following content:
spring.devtools.remote.secret=our-secret
- The next step would be to create a Java application launch configuration for the RemoteSpringApplication class in the IDE.
It is important to make sure the program arguments field has the base URL of the application you are trying to debug together with the port. Ensure that the working directory ...