随笔 - 229
文章 - 0
评论 - 10
阅读 -
26万
04 2020 档案
centos7安装rabbitmq
摘要:1. 安装编译库 yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz 2. 下载安装包 wg
阅读全文
spring cache之redis使用示例
摘要:spring cache默认缓存底层是使用CurrentHashMap, 本示例使用redis作为缓存载体 1. pom.xml依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId
阅读全文
ObjectMapper序列化时间
摘要:springmvc默认的消息转换器是使用的MappingJackson2HttpMessageConverter, 其核心类就是ObjectMapper. 先看一下面一个示例 @RestController public class TestObjectMapperController { @Get
阅读全文
安装alertmanager
摘要:1. 下载安装包 https://prometheus.io/download/ 2. 上传解压 -rwxr-xr-x. 1 3434 3434 26971621 Dec 11 22:13 alertmanager -rw-r--r--. 1 3434 3434 380 Dec 11 22:51 a
阅读全文
prometheus安装
摘要:1. 首先去prometheus官网下载了安装包 https://prometheus.io/download/ 2. 上传安装包到服务器,然后解压 解压之后的文件如上图所示 ./prometheus --help #查看命令 ./prometheus # 启动prometheus服务 3. 浏览器
阅读全文
Ribbon配置随访问策略
摘要:Ribbon负载策略有以下几种: 默认是使用轮询策略. 在springboot项目中,使用ribbon+RestTemplate可以很方便的实现的实现轮询负载策略 配置代码如下: @Configuration public class ApplicationContextConfig { @Bean
阅读全文