spring_reference/V. Spring Boot Actuator: Pr.../41.4. Customizing the manag...

10 lines
392 B
Markdown
Raw Normal View History

### 41.4. 自定义管理服务器的地址
你可以通过设置`management.address`属性来定义管理端点可以使用的地址。这在你只想监听内部或面向生产环境的网络或只监听来自localhost的连接时非常有用。
下面的application.properties示例不允许远程管理连接
```java
management.port=8081
management.address=127.0.0.1
```