diff --git a/V. Spring Boot Actuator: Production-ready features/41.4. Customizing the management server address b/V. Spring Boot Actuator: Production-ready features/41.4. Customizing the management server address deleted file mode 100644 index e69de29..0000000 diff --git a/V. Spring Boot Actuator: Production-ready features/41.4. Customizing the management server address.md b/V. Spring Boot Actuator: Production-ready features/41.4. Customizing the management server address.md new file mode 100644 index 0000000..20f3269 --- /dev/null +++ b/V. Spring Boot Actuator: Production-ready features/41.4. Customizing the management server address.md @@ -0,0 +1,9 @@ +### 41.4. 自定义管理服务器的地址 + +你可以通过设置`management.address`属性来定义管理端点可以使用的地址。这在你只想监听内部或面向生产环境的网络,或只监听来自localhost的连接时非常有用。 + +下面的application.properties示例不允许远程管理连接: +```java +management.port=8081 +management.address=127.0.0.1 +```