在springboot中集成Arthas,并且随着项目启动自己启动。
POM文件引入Arthas
<dependency>
<groupId>com.taobao.arthas</groupId>
<artifactId>arthas-spring-boot-starter</artifactId>
<version>${自己的version}</version>
</dependency>
application.yml中填写Arthas的配置文件
arthas:
enabled: true
app-name: test-arthas #项目名称
http-port: 8563 #启动端口
随着项目启动后,通过端口即可访问!