摘要:
Maven 项目创建父工程 pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="htt 阅读全文
摘要:
location / { deny xx.x6.x3.x2; # 限制某个ip allow all; # 允许所有ip访问 } 阅读全文
摘要:
在nginx配置中增加 location / { # include uwsgi_params; # uwsgi_pass unix:/home/web/zsh/app_uwsgi.sock; proxy_set_header Host $http_host; proxy_set_header X- 阅读全文
摘要:
yum install epel-release yum install nginx 阅读全文
摘要:
-rw-r--r-- 文件类型(-文件 d目录 l软链接) rw- r-- r-- u所有者 g所属组 o其他人 r读w写x执行 组 kb 最后一次修改时间 -rw-r--r--. 1 root root 18 Dec 28 2013 .bash_logout -rw-r--r--. 1 root 阅读全文
摘要:
追踪方法: SpringCloud-sleuth + zipkin zipkin docker 安装 docker run -d -p 9411:9411 openzipkin/zipkin 官网 https://zipkin.io 启动后就是这样子 10.10.10.103:9411 接入项目 2 阅读全文
摘要:
第一步: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-client</artifactId> </dependency> 第二步: @EnableCircuitBr 阅读全文
摘要:
1.注解跨域: @CrossOrigin(allowCredentials = "*") 2. 配置config package com.example.apigeteway.config; import org.springframework.context.annotation.Bean; im 阅读全文
摘要:
zuul: sensitive-headers: 允许携带cookie到其他服务 阅读全文
摘要:
package com.example.apigeteway.filter; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exc 阅读全文