03 2017 档案

摘要:Declarative REST Client: FeignFeign is a declarative web service client. It makes writing web service clients easier.如上是Spring Cloud文档中对于Feign的定义,结合之前的两篇博文,在这里我们就可以吧Feign简单的理解为用户(前端)可以直接接触到的REST接口提供者。... 阅读全文
posted @ 2017-03-17 16:49 二刀 阅读(14786) 评论(0) 推荐(0)
摘要:AWS的文档系统真是烂到家了!!!!!To connect to any of the supported services with the AWS SDK for Java, you must provide AWS credentials. The AWS SDKs and CLIs use provider chains to look for AWS credentials in a n... 阅读全文
posted @ 2017-03-17 11:10 二刀 阅读(2625) 评论(0) 推荐(0)
摘要:接上篇1、pom.xml与上篇一致2、新建包及Application启动类@Configuration@ComponentScan@EnableEurekaClient@EnableAutoConfiguration@RestControllerpublic class Application { @RequestMapping(value = "hello",method = Reques... 阅读全文
posted @ 2017-03-16 17:22 二刀 阅读(1314) 评论(0) 推荐(0)
摘要:组件名:Netflix Eureka 作用:支撑微服务的自注册、自发现,提供负载均衡能力开发环境使用IDEA1.新建Eureka Server,新建maven项目,配置pom.xml org.springframework.cloud spring-cloud-starter-parent Camden.SR5 ... 阅读全文
posted @ 2017-03-16 16:51 二刀 阅读(2159) 评论(0) 推荐(0)