![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微服务
小小逗比唐
这个作者很懒,什么都没留下…
展开
-
springboot项目中redis配置
1 redis如何配置能支持批量模糊删除? 参数配置 : #redis的ip地址 spring.redis.host=127.0.0.1 #端口 spring.redis.port=6379 #链接密码 如果redis没有设置密码则可以不填 spring.redis.password= spring.redis.timeout=10000 #配置redis线程池 spring.redis.jedi...原创 2020-01-19 11:23:42 · 810 阅读 · 0 评论 -
springboot项目获取请求中的参数和返回值
打印请求参数,一般分两种请求方式get和post请求 (其他的请求暂时项目中没有用到) 注意: post请求中的参数只能读一次,所以需要先读取再写回去 读取请求中的参数本文是在拦截器中做的 package com.track.able.config; import org.springframework.beans.factory.annotation.Autowired; import org...原创 2020-01-09 11:35:37 · 1870 阅读 · 0 评论 -
feign熔断配置踩坑
说明: 1 . springcloud 版本为 Greenwich.SR2 2 . feign/netflix版本为 2.1.2.RELEASE 步骤 : 1 引入maven <dependencies> <dependency> <groupId>org.springframework.cloud</groupId...原创 2019-12-25 16:47:39 · 2241 阅读 · 0 评论