mirror of
https://github.com/spring-cloud/spring-cloud-netflix.git
synced 2026-09-17 15:49:00 +00:00
0608f987f5ea37591f6f490ba11d820ff6024133
Ths project provides Netflix OSS integrations for Spring Boot apps through autoconfiguration and binding to the Spring Environment and other Spring programming model idioms.
Eureka Clients
Example eureka client:
@Configuration
@ComponentScan
@EnableAutoConfiguration
@RestController
public class Application {
@RequestMapping("/")
public String home() {
return "Hello world";
}
public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).web(true).run(args);
}
}
(i.e. utterly normal Spring Boot app). Configuration is required to locate the Eureka server. Example:
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8080/v2/
default.defaultZone: http://localhost:8080/v2/
The default application name, virtual host and non-secure port are taken from the Environment is
${spring.application.name}, ${spring.application.name}.mydomain.net and ${server.port} respectively.
Description
No description provided
cloud-nativefeignjavamicroservicesnetflix-eurekanetflix-hystrixnetflix-zuulnetflixossribbonspringspring-bootspring-cloudspring-cloud-core
Readme
30 MiB
Languages
Java
94.9%
CSS
5%
Shell
0.1%