最代码官方
								2020-12-12 19:07:08
							
							
								证
							Spring Boot Actuator 2.3.4.RELEASE新版本实现自定义端点信息的配置实例
项目描述
Spring Boot Actuator提供一系列HTTP端点来暴露项目信息,用来监控和管理springboot项目。
Actuator提供了以下端点,默认除了/shutdown都是Enabled。使用时需要加/actuator前缀,如http://localhost:8080/my-app/actuator/health
可以获取到所有beans信息,可以导出threaddump信息,heapdump信息
运行环境
jdk8+IntelliJ IDEA+maven
项目技术(必填)
spring boot+Spring Boot Actuator
数据库文件(可选)
无
依赖包文件(可选)
maven搭建
链接:https://pan.baidu.com/s/1t_sHWTXABv-MDjKFPj7YOg
提取码:x173
是否原创(转载必填原文地址)
转载https://memorynotfound.com/spring-boot-customize-actuator-info-endpoint-example-configuration/
该博客是基于Spring Boot Actuator 1.5.7.RELEASE版本搭建,我这边用新版本2.3.4.RELEASE
项目截图(必填)
运行截图(必填)
http://localhost:8080/actuator/
info页面,包含了自定义的扩展信息
http://localhost:8080/actuator/info
注意事项(可选)
在实际生产环境需要有权限验证,可以结合Spring Security框架来实现验证,可以参考该代码
猜你喜欢
- SpringBoot+Maven+Echarts实现实时展示CPU内存硬盘性能
- spring boot集成sigar极简入门实例
- spring boot集成oshi极简入门实例
- Spring Boot创建自定义Banner.txt实例
- Spring Boot整合Ehcache的简单入门实例
- Spring Boot整合VueJS+spring data jpa实现待办事项TODO项目实例
- Springboot+thymeleaf对员工的增删改查操作 带分页功能
- Spring Boot整合Freemarker实现文件上传项目实例
- Spring Boot配置@Profile注解加载不同环境的配置文件实例
- spring boot使用不指定Maven parent pom来创建可执行的spring boot项目
- Spring Boot整合jsp做为显示层的hello world实例
- Spring Boot整合SpringFox Swagger2实现REST API增删改查项目实例
请下载代码后再发表评论
    
											  
													 文件名:custom-info-endpoint.zip,文件大小:6.005K
											  
											  
												  下载
											  
											  
											  
												
										  
								- /- /custom-info-endpoint- /custom-info-endpoint/custom-info-endpoint.iml
- /custom-info-endpoint/pom.xml
- /custom-info-endpoint/src- /custom-info-endpoint/src/main- /custom-info-endpoint/src/main/java- /custom-info-endpoint/src/main/java/com- /custom-info-endpoint/src/main/java/com/memorynotfound- /custom-info-endpoint/src/main/java/com/memorynotfound/cloud
 
 
- /custom-info-endpoint/src/main/java/com/memorynotfound
 
- /custom-info-endpoint/src/main/java/com
- /custom-info-endpoint/src/main/resources
 
- /custom-info-endpoint/src/main/java
 
- /custom-info-endpoint/src/main
 
 
- /custom-info-endpoint
 相关代码
相关代码
				- 证 Spring Boot创建自定义Banner.txt实例
- 证 Spring Boot整合Ehcache的简单入门实例
- 证 Spring Boot整合VueJS+spring data jpa实现待办事项TODO项目实例
- 证 Springboot+thymeleaf对员工的增删改查操作 带分页功能
- 证 Spring Boot整合Freemarker实现文件上传项目实例
- 证 Spring Boot配置@Profile注解加载不同环境的配置文件实例
- 证 spring boot使用不指定Maven parent pom来创建可执行的spring boot项目
- 证 Spring Boot整合jsp做为显示层的hello world实例
- 证 Spring Boot整合SpringFox Swagger2实现REST API增删改查项目实例
- 原证 springboot+sqlite3+iceEditor开发网页版记事本
- 原证 spring AOP 过滤器 拦截器 执行顺序示例
- 证 基于Spring Boot、Layui和Mybatis-plus的后台管理系统脚手架项目
 最近下载
最近下载
				 最近浏览
最近浏览
				
                张朕朕     LV3
                2023年9月10日
            
            
        
                18942619496    
                2023年8月14日
            
            
                    暂无贡献等级
            
        
                denliv_hui     LV14
                2023年6月30日
            
            
        
                wwfl02     LV3
                2023年6月13日
            
            
        
                幻影诸     LV1
                2023年6月3日
            
            
        
                微信网友_6404797419704320    
                2023年3月25日
            
            
                    暂无贡献等级
            
        
                164048465    
                2023年2月23日
            
            
                    暂无贡献等级
            
        
                shizhaol     LV1
                2023年2月6日
            
            
        
                yohohero     LV1
                2023年1月14日
            
            
        
                38735466     LV11
                2023年1月8日
            
            
        




 
                 
                