Skip to content

Commit a03df04

Browse files
Bill PCthuannguyenit
authored andcommitted
Create Github repo for Spring Cloud Config Server
1 parent dfc44b7 commit a03df04

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

micro-services/cloud-config-repo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 6ce1b2844d55b8f530f6baaeae1c16a9725f6e76

micro-services/limits-service/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</properties>
2727

2828
<dependencies>
29-
<!--
29+
<!--
3030
<dependency>
3131
<groupId>org.springframework.boot</groupId>
3232
<artifactId>spring-boot-starter-actuator</artifactId>
@@ -36,7 +36,7 @@
3636
<artifactId>spring-boot-devtools</artifactId>
3737
<scope>runtime</scope>
3838
</dependency>
39-
-->
39+
-->
4040
<dependency>
4141
<groupId>org.springframework.boot</groupId>
4242
<artifactId>spring-boot-starter-web</artifactId>

micro-services/limits-service/src/main/java/com/codekooking/microservices/limitsservice/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import org.springframework.stereotype.Component;
55

66
@Component
7-
@ConfigurationProperties("limits-service")
7+
@ConfigurationProperties("config-prefix")
88
public class Configuration {
99
private int minimum;
1010
private int maximum;

micro-services/limits-service/src/main/java/com/codekooking/microservices/limitsservice/LimitsServiceApplication.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.cloud.context.config.annotation.RefreshScope;
56

67
@SpringBootApplication
8+
@RefreshScope
79
public class LimitsServiceApplication {
810

911
public static void main(String[] args) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
spring.application.name=spring-cloud-config-server
22
server.port=8888
33

4-
spring.cloud.config.server.git.uri=file:///D:/JAVA/SPRING-FRAMEWORK/microservices-springboot-angularjs/micro-services/git-localconfig-repo
4+
spring.cloud.config.server.git.uri=https://github.com/codekooking/cloud-config-repo

0 commit comments

Comments
 (0)