Spring Cloud 1.0.0.RC1 发布

jopen 9年前

Spring Cloud 为开发者提供了在分布式系统(如配置管理、服务发现、断路器、智能路由、微代理、控制总线、一次性 Token、全局锁、决策竞选、分布式会话和集群状态)操作的开发工具。使用 Spring Cloud 开发者可以快速实现上述这些模式。

Spring Cloud 1.0.0.RC1 发布,此版本现已提供在 http://repo.spring.io 和 Maven 库。

值得关注的新特性如下:

  • 通过一个注解 @EnableTurbine@EnableTurbineAmqp 支持 Hystrix 指标聚合 (for an AMQP-based collector)

  • 新增一个 rehaul 的 Ribbon 配置,提升了 Spring 用户体验

  • DiscoveryHealthIndicator is now a composite that users can add information to by declaring @Beans of type DiscoveryHealthIndicator.

  • Discovery is now abstracted away from Eureka into a new spring-cloud-commons library, and enabled via new annotations like @EnableDiscoveryClient (instead of the old @EnableEurekaClient). The same pattern also applies to circuit breakers
    and @EnableCircuitBreaker replaces @EnableHystrix.

  • Several improvements to the Zuul proxy, including automatic updates when the Eureka catalog changes, support for form-encoded POSTs, external configuration of the routes and authentication scheme for each client.

  • Declarative configuration of which routes require OAuth2 authentication in Spring Cloud Security.

  • Support for labels (like git branches) in the “native” profile of the Config Server (looks in subdirectory of the search locations).

  • Fail fast option in Config Server and Client if the required URI to locate config data is invalid.

  • Out of the box support for JSON messages in the Spring Cloud Bus.

  • A nice framework for Feign configuration based on a new @FeignClient annotation (a bit like Spring Data repositories).

一些 bus 和 Starters 已经被重新组织和重新命名,同时有(可选的)父母 pom 提供给用户应用,starters 完整列表:

  • spring-cloud-starter: provides the config client and basic Spring Boot dependencies

  • spring-cloud-starter-bus-amqp: for bus clients over AMQP

  • spring-cloud-starter-cloudfoundry: Cloud Foundry specific features

  • spring-cloud-starter-eureka: service discovery client with Netflix Eureka

  • spring-cloud-starter-eureka-server: service discovery server with Netflix Eureka

  • spring-cloud-starter-hystrix: circuit break client with Netflix Hystrix

  • spring-cloud-starter-hystrix-dashboard: circuit break dashboard with Netflix Hystrix

  • spring-cloud-starter-security: single sign on and OAuth2 resource server short cuts

  • spring-cloud-starter-turbine: HTTP-based Hystrix metric aggregation with Netflix Turbine 1.0

  • spring-cloud-starter-turbine-amqp: AMQP-based Hystrix metric aggregation with Netflix Turbine 2.0

  • spring-cloud-starter-zuul: basic Zuul proxy with auto-registration of discovered services

更多内容请看发行说明

来自:http://www.oschina.net/news/58109/spring-cloud-1-0-0-rc1