Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
commmit
  • Loading branch information
PangGit committed Mar 22, 2018
commit 56651fd182b0f4ced2f2911b462b2b9f71eba889
4 changes: 2 additions & 2 deletions Chapter1-1-1/compute-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
<version>1.5.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -42,7 +42,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.RELEASE</version>
<version>Dalston.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

This file was deleted.

10 changes: 5 additions & 5 deletions Chapter1-1-1/eureka-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<description>Spring Cloud project</description>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
Expand Down Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.RELEASE</version>
<version>Dalston.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

@EnableEurekaServer
@SpringBootApplication
public class Application {
public class EurekaServerApplication {

public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).web(true).run(args);
new SpringApplicationBuilder(EurekaServerApplication.class).web(true).run(args);
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
server.port=1111
#server.port=1111
#eureka.instance.hostname=localhost
#
#eureka.client.register-with-eureka=false
#eureka.client.fetch-registry=false
#eureka.client.serviceUrl.defaultZone=http://localhost:${server.port}/eureka/

spring.application.name=eureka-server
server.port=1111
eureka.instance.hostname=localhost
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
eureka.client.serviceUrl.defaultZone=http://localhost:${server.port}/eureka/
eureka.client.fetch-registry=false
4 changes: 2 additions & 2 deletions Chapter1-1-4/config-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
<version>1.5.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.RELEASE</version>
<version>Dalston.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ spring.application.name=config-server
server.port=7001

# git��������
spring.cloud.config.server.git.uri=http://git.oschina.net/didispace/SpringBoot-Learning/
spring.cloud.config.server.git.searchPaths=Chapter9-1-4/config-repo
spring.cloud.config.server.git.username=username
spring.cloud.config.server.git.password=password
spring.cloud.config.server.git.uri=https://gitee.com/pdb2010/config-server
#spring.cloud.config.server.git.searchPaths=Chapter9-1-4/config-repo
spring.cloud.config.server.git.username=pangdabo2010@hotmail.com
spring.cloud.config.server.git.password=ZXCVbnm.123

# ������������
spring.profiles.active=native
Expand Down
4 changes: 2 additions & 2 deletions Chapter1-1-7/config-client-eureka-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.7.RELEASE</version>
<version>1.5.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR5</version>
<version>Dalston.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

@EnableDiscoveryClient
@SpringBootApplication
public class Application {
public class ConfigClientEurekaKafkaApplication {

public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).web(true).run(args);
new SpringApplicationBuilder(ConfigClientEurekaKafkaApplication.class).web(true).run(args);
}

}
4 changes: 2 additions & 2 deletions Chapter1-1-7/config-server-eureka-kafka/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.7.RELEASE</version>
<version>1.5.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

Expand Down Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Brixton.SR5</version>
<version>Dalston.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
@EnableDiscoveryClient
@EnableConfigServer
@SpringBootApplication
public class Application {
public class ConfigServerEurekaKafkaApplication {

public static void main(String[] args) {
new SpringApplicationBuilder(Application.class).web(true).run(args);
new SpringApplicationBuilder(ConfigServerEurekaKafkaApplication.class).web(true).run(args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ server.port=7001
eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/

# git��������
spring.cloud.config.server.git.uri=http://git.oschina.net/didispace/SpringCloud-Learning/
spring.cloud.config.server.git.searchPaths=Chapter1-1-7/config-repo
spring.cloud.config.server.git.username=username
spring.cloud.config.server.git.password=password
spring.cloud.config.server.git.uri=https://gitee.com/pdb2010/config-server
#spring.cloud.config.server.git.searchPaths=Chapter1-1-7/config-repo
spring.cloud.config.server.git.username=pangdabo2010@hotmail.com
spring.cloud.config.server.git.password=ZXCVbnm.123

#kafka
spring.cloud.stream.kafka.binder.zk-nodes=localhost:2181
spring.cloud.stream.kafka.binder.brokers=localhost:9092
spring.cloud.stream.kafka.binder.brokers=localhost:9092

#spring.cloud.stream.kafka.binder.brokers Kafka�ķ�����б� localhost
#spring.cloud.stream.kafka.binder.defaultBrokerPort Kafka����˵�Ĭ�϶˿ڣ���brokers������û�����ö˿���Ϣʱ���ͻ�ʹ�����Ĭ�϶˿� 9092
#spring.cloud.stream.kafka.binder.zkNodes Kafka��������ӵ�ZooKeeper�ڵ��б� localhost
#spring.cloud.stream.kafka.binder.defaultZkPort ZooKeeper�ڵ��Ĭ�϶˿ڣ���zkNodes������û�����ö˿���Ϣʱ���ͻ�ʹ�����Ĭ�϶˿� 2181