Commit 661729cb authored by duanledexianxianxian's avatar duanledexianxianxian 😁

update config file

parent eb72ee58
Pipeline #111 failed
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-cloud-hello-world</artifactId>
<groupId>com.duanledexian.spring.cloud</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hello-config-server</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
</dependencies>
</project>
package com.duanledexian.spring.cloud.config;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.config.server.EnableConfigServer;
/**
* 配置服务中心
* <p>@EnableConfigServer 激活对配置中心的支持</p>
*
* @author Administrator
* @version 1.0.0
*/
@SpringBootApplication
@EnableConfigServer
@ServletComponentScan
public class SpringConfigServiceApplication {
/**
* The entry point of application.
*
* @param args the input arguments
*/
public static void main(String[] args) {
SpringApplication.run(SpringConfigServiceApplication.class, args);
}
}
server:
# 服务器端口
port: 9300
eureka:
client:
service-url:
defaultZone: http://localhost:9000/eureka/
spring:
application:
name: config-server
cloud:
config:
server:
git:
# 配置git仓库的地址
uri: http://platform.kuopu.net:9999/gitlab/duanledexianxianxian/spring-cloud-learn.git
# git仓库地址下的相对地址,可以配置多个,用,分割。
search-paths: spring-cloud-hello-world/config-repo
skip-ssl-validation: false
bus:
trace:
enabled: true
rabbitmq:
port: 9005
username: admin
password: "!admin!"
host: 113.105.144.9
management:
endpoints:
web:
exposure:
include: "*"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment