From 94770cc0fd614f5d285c3812f61bd3322e6bdc2c Mon Sep 17 00:00:00 2001 From: Jack Gough Date: Mon, 15 Oct 2018 20:28:42 +0100 Subject: [PATCH] Force JMX hostname to 127.0.0.1 Closes gh-14836 --- .../src/main/java/org/springframework/boot/maven/StartMojo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java index 9a27ca8479..84362d9419 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java @@ -133,6 +133,7 @@ public class StartMojo extends AbstractRunMojo { remoteJmxArguments.add("-Dcom.sun.management.jmxremote.port=" + this.jmxPort); remoteJmxArguments.add("-Dcom.sun.management.jmxremote.authenticate=false"); remoteJmxArguments.add("-Dcom.sun.management.jmxremote.ssl=false"); + remoteJmxArguments.add("-Djava.rmi.server.hostname=127.0.0.1"); jvmArguments.getArgs().addAll(remoteJmxArguments); } return jvmArguments;