support disabledCommands part 3. #1729

This commit is contained in:
hengyunabc
2021-06-10 20:51:04 +08:00
parent dbf6301399
commit b17a0cde8e
4 changed files with 35 additions and 0 deletions
+15
View File
@@ -32,6 +32,21 @@ arthas.sessionTimeout=1800
> 如果是防止一个机器上启动多个 arthas端口冲突。可以配置为随机端口,或者配置为 -1,并且通过tunnel server来使用arthas。
### 禁止指定命令
> since 3.5.2
比如配置:
```
arthas.disabledCommands=stop,dump
```
也可以在命令行配置: `--disabled-commands stop,dump`
> 默认情况下,arthas-spring-boot-starter会禁掉`stop`命令。
## 配置的优先级
配置的优先级是:命令行参数 > System Env > System Properties > arthas.properties 。
@@ -30,6 +30,22 @@ arthas.sessionTimeout=1800
> If you want to prevent multiple arthas port conflicts on a machine. It can be configured as a random port, or configured as -1, and use arthas through the tunnel server.
### disable specify commands
> since 3.5.2
Such as configuration:
```
arthas.disabledCommands=stop,dump
```
It can also be configured on the command line: `--disabled-commands stop,dump`.
> By default, arthas-spring-boot-starter will disable the `stop` command.
## Configured order
The order of configuration is: command line parameters > System Env > System Properties > arthas.properties.
@@ -29,6 +29,8 @@ arthas.tunnel-server=ws://47.75.156.201:7777/ws
All supported configuration: [Reference](https://github.com/alibaba/arthas/blob/master/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java)
> By default, arthas-spring-boot-starter will disable the `stop` command.
Reference: [Arthas Properties](arthas-properties.md)
### View Endpoint Information
@@ -31,6 +31,8 @@ arthas.tunnel-server=ws://47.75.156.201:7777/ws
全部支持的配置项:[参考](https://github.com/alibaba/arthas/blob/master/arthas-spring-boot-starter/src/main/java/com/alibaba/arthas/spring/ArthasProperties.java)
> 默认情况下,arthas-spring-boot-starter会禁掉`stop`命令。
参考:[Arthas Properties](arthas-properties.md)
### 查看Endpoint信息