前提
- 项目基于git管理工具
- jdk1.8+springboot2.0.4版本
maven配置git插件
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
</plugin>
application.properties添加展示
management.endpoints.web.exposure.include=*
management.endpoints.web.base-path=/actuator
management.endpoint.health.show-details=always
management.info.git.mode=full