<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
server:
port: 8004
spring:
application:
name: cloud-config
cloud:
config:
server:
git:
username: 272438000@qq.com
password: gh
uri: https://github.com/jesse110/configServer
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka/
@SpringBootApplication
@EnableConfigServer
public class CloudconfigApplication {
public static void main(String[] args) {
SpringApplication.run(CloudconfigApplication.class, args);
}
}