Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spring-cloud-learn
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
spring-cloud-learn
Commits
661729cb
Commit
661729cb
authored
Sep 02, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update config file
parent
eb72ee58
Pipeline
#111
failed
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
0 deletions
+95
-0
spring-cloud-hello-world/config-server/pom.xml
spring-cloud-hello-world/config-server/pom.xml
+33
-0
spring-cloud-hello-world/config-server/src/main/java/com/duanledexian/spring/cloud/config/SpringConfigServiceApplication.java
...n/spring/cloud/config/SpringConfigServiceApplication.java
+28
-0
spring-cloud-hello-world/config-server/src/main/resources/application.yml
...lo-world/config-server/src/main/resources/application.yml
+34
-0
No files found.
spring-cloud-hello-world/config-server/pom.xml
0 → 100644
View file @
661729cb
<?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>
spring-cloud-hello-world/config-server/src/main/java/com/duanledexian/spring/cloud/config/SpringConfigServiceApplication.java
0 → 100644
View file @
661729cb
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
);
}
}
spring-cloud-hello-world/config-server/src/main/resources/application.yml
0 → 100644
View file @
661729cb
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
:
"
*"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment