07 2018 档案
摘要:使用nginx做负载均衡或http代理时,碰到http header不转发的问题。 配置里只有转发设置原始ip和host的 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X
阅读全文
摘要:1、log_format 普通格式 2、log_format JSON 格式 3、指定日志格式 4、字段释义 字段 说明
阅读全文
摘要:用spring oauth做统一认证,有时需要从request中取得token,可以采用如下方法: @Autowired private OAuth2RestTemplate restTemplate; OAuth2AccessToken oAuth2AccessToken = this.restT
阅读全文