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 阅读全文
posted @ 2018-07-10 14:03 春雨如约而来 阅读(415) 评论(0) 推荐(0) 编辑
摘要:1、log_format 普通格式 2、log_format JSON 格式 3、指定日志格式 4、字段释义 字段 说明 阅读全文
posted @ 2018-07-03 17:03 春雨如约而来 阅读(237) 评论(0) 推荐(0) 编辑
摘要:用spring oauth做统一认证,有时需要从request中取得token,可以采用如下方法: @Autowired private OAuth2RestTemplate restTemplate; OAuth2AccessToken oAuth2AccessToken = this.restT 阅读全文
posted @ 2018-07-03 16:38 春雨如约而来 阅读(990) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示