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
42598d3a
Commit
42598d3a
authored
Aug 30, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add config file
parent
da3c5bbe
Pipeline
#99
failed
Changes
8
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
0 deletions
+77
-0
README.md
README.md
+9
-0
spring-cloud-hello-world/hello-config-server/pom.xml
spring-cloud-hello-world/hello-config-server/pom.xml
+25
-0
spring-cloud-hello-world/hello-config-server/src/main/java/com/duanledexian/spring/cloud/config/SpringConfigApplication.java
...ledexian/spring/cloud/config/SpringConfigApplication.java
+26
-0
spring-cloud-hello-world/hello-config-server/src/main/resources/application.yml
...ld/hello-config-server/src/main/resources/application.yml
+16
-0
spring-cloud-hello-world/hello-consumer-ribbon/target/classes/com/duanledexian/spring/cloud/producer/SpringWebApplication.class
...ledexian/spring/cloud/producer/SpringWebApplication.class
+0
-0
spring-cloud-hello-world/hello-consumer-ribbon/target/classes/com/duanledexian/spring/cloud/producer/config/AppConfig.class
...duanledexian/spring/cloud/producer/config/AppConfig.class
+0
-0
spring-cloud-hello-world/hello-consumer-ribbon/target/classes/com/duanledexian/spring/cloud/producer/controller/HomeController.class
...ian/spring/cloud/producer/controller/HomeController.class
+0
-0
spring-cloud-hello-world/pom.xml
spring-cloud-hello-world/pom.xml
+1
-0
No files found.
README.md
View file @
42598d3a
...
@@ -24,6 +24,15 @@ springboot与spring cloud兼容版本
...
@@ -24,6 +24,15 @@ springboot与spring cloud兼容版本
9200-9299: 服务消费方端口
9200-9299: 服务消费方端口
9300-9399:统一配置中心
### 问题
1.
Eureka控制台出现
EMERGENCY! EUREKA MAY BE INCORRECTLY CLAIMING INSTANCES ARE UP WHEN THEY'RE NOT. RENEWALS ARE LESSER THAN THRESHOLD AND HENCE THE INSTANCES ARE NOT BEING EXPIRED JUST TO BE SAFE.
说明Eureka已经进入了保护模式。
### 参考
### 参考
1.
https://windmt.com/2018/04/14/spring-cloud-1-services-governance/
1.
https://windmt.com/2018/04/14/spring-cloud-1-services-governance/
...
...
spring-cloud-hello-world/hello-config-server/pom.xml
0 → 100644
View file @
42598d3a
<?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.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
spring-cloud-hello-world/hello-config-server/src/main/java/com/duanledexian/spring/cloud/config/SpringConfigApplication.java
0 → 100644
View file @
42598d3a
package
com.duanledexian.spring.cloud.config
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.config.server.EnableConfigServer
;
/**
* 配置服务中心
* <p>@EnableConfigServer 激活对配置中心的支持</p>
*
* @author Administrator
* @version 1.0.0
*/
@SpringBootApplication
@EnableConfigServer
public
class
SpringConfigApplication
{
/**
* The entry point of application.
*
* @param args the input arguments
*/
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SpringConfigApplication
.
class
,
args
);
}
}
spring-cloud-hello-world/hello-config-server/src/main/resources/application.yml
0 → 100644
View file @
42598d3a
server
:
# 服务器端口
port
:
9300
spring
:
application
:
name
:
config-server
cloud
:
config
:
server
:
git
:
# 配置git仓库的地址
uri
:
http://platform.kuopu.net:9999/gitlab/duanledexianxianxian/spring-cloud-learn
# git仓库地址下的相对地址,可以配置多个,用,分割。
search-paths
:
spring-cloud-hello-world/config-repo
skip-ssl-validation
:
false
spring-cloud-hello-world/hello-consumer-ribbon/target/classes/com/duanledexian/spring/cloud/producer/SpringWebApplication.class
View file @
42598d3a
No preview for this file type
spring-cloud-hello-world/hello-consumer-ribbon/target/classes/com/duanledexian/spring/cloud/producer/config/AppConfig.class
View file @
42598d3a
No preview for this file type
spring-cloud-hello-world/hello-consumer-ribbon/target/classes/com/duanledexian/spring/cloud/producer/controller/HomeController.class
View file @
42598d3a
No preview for this file type
spring-cloud-hello-world/pom.xml
View file @
42598d3a
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<module>
hello-consumer
</module>
<module>
hello-consumer
</module>
<module>
hello-consumer-ribbon
</module>
<module>
hello-consumer-ribbon
</module>
<module>
hello-consumer-feign
</module>
<module>
hello-consumer-feign
</module>
<module>
hello-config-server
</module>
</modules>
</modules>
<dependencies>
<dependencies>
...
...
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