自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(24)
  • 收藏
  • 关注

转载 spring-security-oauth2注解详解

spring-security-oauth2支持的注解有:1.EnableOAuth2Client适用于使用spring security,并且想从Oauth2认证服务器来获取授权的web应用环境代码中,它启用了一个Oauth2 客户端配置。为了更好的利用这个特性,需要在客户端应用中的DelegatingFilterProxy(代理一个名为oauth2ClientContextF...

2017-02-28 20:06:00 163

转载 一张图了解javaJwt

1.什么是javaJwt?JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.JWT.IO allows you to decode, verify and generate JWT.https://j...

2017-02-28 15:08:00 92

转载 nginx假死导致的问题回顾

背景:网络大致拓扑型定位到一台Nginx节点于凌晨Timewait异常,等到6K。进程异常,ngx_http_realtime_request模块错误错误日志:2017/02/24 00:01:02 [alert] 25911#0: worker process 24588 exited on signal 112017/02/24 00:0...

2017-02-27 15:49:00 1120

转载 lvs为何不能完全替代DNS轮询--转

原文地址:http://mp.weixin.qq.com/s?__biz=MjM5ODYxMDA5OQ==&mid=2651959595&idx=1&sn=5f0633afd24c547b895f29f6538baa99&scene=1&srcid=0918W9XezgcVJt1eMtQeUE6C#wechat_redirect016-09-1...

2017-02-27 14:41:00 61

转载 nginx大量TIME_WAIT的解决办法--转

原文地址:http://liuyieyer.iteye.com/blog/2214722?utm_source=tuicool&utm_medium=referral由于网站使用nginx做的反向代理he负载均衡。在没有默认的系统TCP参数情况下回导致大量的TIME_WAIT出现。终端可以下敲入Shell代码netstat-...

2017-02-27 14:17:00 720

转载 java 文件读写demo

分析错误日志:import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;public class tongji { @SuppressWarnings({ "unused" }) public static void main(Str...

2017-02-27 14:14:00 79

转载 netflix feign概述

1.什么是feign?feign的作用是什么?Feign is a java to http client binder inspired by Retrofit, JAXRS-2.0, and WebSocket. Feign's first goal was reducing the complexity of binding Denominator uniformly to h...

2017-02-27 13:17:00 468

转载 spring-cloud导入eclipse时,@slf4j注解为什么找不到log变量

原因是缺少插件Lomboz。Lomboz是一个基于LGPL的开源J2EE综合开发环境的Eclipse插件,对编码,发布,测试,以及debug等各个软件开发的生命周期提供支持,支持JSP,EJB等。Lomboz是Eclipse的一个J2EE的插件,它将很多Java应用服务器、J2EE组件和Web应用开发集成到Eclipse中,可以帮助Java开发者使用Eclipse建立、测试、部署J2...

2017-02-23 19:51:00 287

转载 netflix turbine概述

1.turbine是什么?它的作用是什么?Turbine is a tool for aggregating streams of Server-Sent Event (SSE) JSON data into a single stream. The targeted use case is metrics streams from instances in an SOA being...

2017-02-23 16:56:00 370

转载 How Hystrix Works?--官方

https://github.com/Netflix/Hystrix/wiki/How-it-WorksContentsFlow ChartCircuit BreakerIsolationThreads & Thread PoolsRequest CollapsingRequest CachingFlow ChartThe foll...

2017-02-23 14:40:00 175

转载 netflix ribbon概述

LB方案分类目前主流的LB方案可分成两类:一种是集中式LB, 即在服务的消费方和提供方之间使用独立的LB设施(可以是硬件,如F5, 也可以是软件,如nginx), 由该设施负责把访问请求通过某种策略转发至服务的提供方;另一种是进程内LB,将LB逻辑集成到消费方,消费方从服务注册中心获知有哪些地址可用,然后自己再从这些地址中选择出一个合适的服务器。Ribbon就属于后者,它只是一个类库...

2017-02-23 14:06:00 311

转载 spring-cloud-netflix集成的服务

1.RibbonRibbonis a client side IPC library that is battle-tested in cloud. It provides the following featuresLoad balancingFault toleranceMultiple protocol (HTTP, TCP, UDP) support in ...

2017-02-22 17:55:00 72

转载 支付系统设计包含:账户,对账,风控...!史上最全的!--转

原文地址:http://mt.sohu.com/business/d20161222/122312609_481676.shtml    账户体系是支付系统的基础,它的设计直接影响整个系统的特性。这里探讨如何针对电子商务系统的支付账户体系设计。我们从一些基本概念开始入手,了解怎么建模。    支付账户和登录账号  账户体系设计首先要区分两个概念,支付账户和登录...

2017-02-22 16:37:00 1600

转载 利用CORS实现跨域请求--转

原文地址:http://newhtml.net/using-cors/跨域请求一直是网页编程中的一个难题,在过去,绝大多数人都倾向于使用JSONP来解决这一问题。不过现在,我们可以考虑一下W3C中一项新的特性——CORS(Cross-Origin Resource Sharing)了。本文的所有代码均来自http://www.html5rocks.com/en/tutori...

2017-02-22 10:37:00 59

转载 netflix zuul 1.x与zuul2.x之比较

1.zuul 1.x的架构如下所示:线程模型:其web应用的web.xml<?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.s...

2017-02-20 19:28:00 301

转载 Announcing Zuul: Edge Service in the Cloud--转

原文地址:http://techblog.netflix.com/2013/06/announcing-zuul-edge-service-in-cloud.htmlThe Netflix streaming application is a complex array of intertwined systems tha...

2017-02-17 18:06:00 96

转载 基于Spring Boot和Spring Cloud实现微服务架构学习--转

原文地址:http://blog.csdn.net/enweitech/article/details/52582918看了几周spring相关框架的书籍和官方demo,是时候开始总结下这中间的学习感悟。首先,最想说的是,当你要学习一套最新的技术时,官网的英文文档是学习的最佳渠道。因为网上流传的多数资料是官网翻译而来,很多描述的重点也都偏向于作者自身碰到的问题,这样就很容易让你理...

2017-02-17 10:25:00 191

转载 Zuul 2 : The Netflix Journey to Asynchronous, Non-Blocking Systems--转

原文地址:http://techblog.netflix.com/2016/09/zuul-2-netflix-journey-to-asynchronous.htmlWe recently made a major architectural change toZuul, our cloud gateway. Did anyone even notice!? Probably ...

2017-02-17 09:47:00 103

转载 支付系统的对账处理与设计--转

本文来自 微信公众号“凤凰牌老熊”。可以说,对账是支付系统最头疼的事情。每一笔交易,都要做到各参与者的记录能够吻合,没有偏差。对账系统的工作,是发现有差异的记录,即轧帐;然后通过人工或者自动的方式,解决这些差异,即平帐。对电商系统来说,每一笔交易,在所有相关主体侧都要能对得上:交易主体,如果发起人是个人,必须能够从个人交易历史记录中找到这笔交易。但大部分人不会保留电子...

2017-02-17 09:30:00 176

转载 centos 6.7下安装rabbitmq 3.6.6过程

准备,请确保有root权限或者sudo权限,不然不用继续看下去了。1.erland的安装首先测试一下是否已经安装了erlang,命令rpm -qa | grep erlang若没有安装,则yum install erlang否则跳到第二步2. rabbitmq server安装下载rpm文件rabbitmq-server-3.6.6-1.e...

2017-02-16 18:33:00 81

转载 Can't access RabbitMQ web management interface after fresh install

http://stackoverflow.com/questions/22850546/cant-access-rabbitmq-web-management-interface-after-fresh-install问题:I've installed the latest RabbitMQ server (rabbitmq-server-3....

2017-02-16 16:52:00 70

转载 多种负载均算法及其 Java 代码实现 --转

原文地址:https://www.oschina.net/news/81750/variety-pf-load-balancing-algorithm-and-its-java-code首先给大家介绍下什么是负载均衡(来自百科)负载均衡建立在现有网络结构之上,它提供了一种廉价有效透明的方法扩展网络设备和服务器的带宽、增加吞吐量、加强网络数据处理能力、提高网络的...

2017-02-09 15:26:00 102

转载 Spring Cloud Netflix Eureka client源码分析

1.client端EurekaClient提供三个功能:EurekaClient API contracts are:* - provide the ability to get InstanceInfo(s) (in various different ways)* - provide the ability to get data about the local Client...

2017-02-07 14:25:00 98

转载 Reddit如何使用Memcached来存储3TB的缓存数据--转

原文地址:http://www.infoq.com/cn/news/2017/01/Reddit-Memcached-3TB?utm_source=infoq&utm_medium=popular_widget&utm_campaign=popular_content_list&utm_content=homepageReddit如何使用Memcached...

2017-02-03 11:23:00 106

空空如也

空空如也

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

TA关注的人

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