自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 feign调用不经过网关

feign调用不经过网关,是一种http的调用 需要携带网关的session信息,创建一个feign的拦截器实现 RequestInterceptor 列子: @EnableFeignClients @Configuration public class FeignRequestInterceptor implements RequestInterceptor { @Override public void apply(RequestTemplate requestTempla.

2022-04-24 01:02:17 4730

原创 微服务的上传图片注意问题

微服务上传图片的时候端口号问题: private URI getHost(URI uri) { URI effectiveURI; try { effectiveURI = new URI(uri.getScheme(), uri.getUserInfo(), ip, port, null, null, null); } catch (URISyntaxException e) { effectiveURI = nu

2022-04-13 02:30:30 247

原创 关与redis缓存配置类

import java.time.Duration; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.cache.RedisCacheCo.

2022-04-13 01:13:40 180

原创 关于时区问题

mysql springboot json 时区问题导致时间不一致: 先看看springboot时区 System.out.println(TimeZone.getDefault()); 配置jackson 时区 spring.jackson.time-zone=Asia/Shanghai spring.jackson.date-format=yyyy-MM-dd HH:mm:ss 然后mysql时间设置调成一直就可以了。 ...

2022-03-29 01:56:00 1312

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除