2019年8月20日

Spring Boot 之:Actuator 监控

摘要: 在 Spring Boot 2.x 中为了安全,Actuator 只开放了两个端点 /actuator/health 和 /actuator/info。可以在配置文件中设置打开。 Actuator 默认所有的监控点路径都在/actuator/ ,当然如果有需要这个路径也支持定制。 Actuator 阅读全文

posted @ 2019-08-20 18:01 cag2050 阅读(189) 评论(0) 推荐(0) 编辑

Spring Boot 中集成 Redis 作为数据缓存

摘要: 只添加注解:@Cacheable,不配置key时,redis 中默认存的 key 是: (1.redis cli 中,通过命令: 查看;2. :缓存对象存储在Map集合中的key值,非必需,缺省按照函数的所有参数组合作为key值,若自己配置需使用SpEL表达式,比如:@Cacheable(key = 阅读全文

posted @ 2019-08-20 17:48 cag2050 阅读(285) 评论(0) 推荐(0) 编辑

导航