2020年5月1日

网关限流操作

摘要: 引入依赖 org.springframework.boot spring-boot-starter-data-redis-reactive 2.1.3.RELEASEyaml配置文件配置spring: application: name: sysgateway cloud: gateway: routes: - id: goods ... 阅读全文

posted @ 2020-05-01 23:53 赟麟 阅读(429) 评论(0) 推荐(0) 编辑

springcloud网关跨域问题和转发服务的配置

摘要: 只需要在yml文件中添加此配置即可spring: application: name: gateway-web cloud: gateway: globalcors: cors-configurations: '[/**]': # 匹配所有请求 allowedOrigins: "*" #跨域处理 允许所有的域 ... 阅读全文

posted @ 2020-05-01 23:07 赟麟 阅读(1296) 评论(1) 推荐(0) 编辑

分布式存储FastDFS

摘要: 加入依赖 net.oschina.zcx7878 fastdfs-client-java 1.27.0.0yml中配置spring: servlet: multipart: max-file-size: 10MB max-request-size: 10MBfdfs_clients.confconnect_timeout = 60network_tim... 阅读全文

posted @ 2020-05-01 19:51 赟麟 阅读(196) 评论(0) 推荐(0) 编辑

Swagger2

摘要: 引入依赖 io.springfox springfox-swagger-common 2.7.0 io.springfox springfox-swagger-ui 2.7.0 io.springfox sp... 阅读全文

posted @ 2020-05-01 13:23 赟麟 阅读(178) 评论(0) 推荐(0) 编辑

导航