Skip to content

Commit

Permalink
第23章
Browse files Browse the repository at this point in the history
  • Loading branch information
benwang6 committed Dec 9, 2019
1 parent d2a12e8 commit f1f3a1f
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 6 deletions.
15 changes: 15 additions & 0 deletions config/item-service-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
spring:
application:
name: item-service
cloud:
config:
override-none: true

server:
port: 8001

eureka:
client:
service-url:
defaultZone: http://eureka1:2001/eureka, http://eureka2:2002/eureka

25 changes: 25 additions & 0 deletions config/order-service-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
spring:
application:
name: order-service
cloud:
config:
override-none: true

server:
port: 8201

eureka:
client:
service-url:
defaultZone: http://eureka1:2001/eureka, http://eureka2:2002/eureka

feign:
hystrix:
enabled: true

management:
endpoints:
web:
exposure:
include: hystrix.stream

24 changes: 24 additions & 0 deletions config/user-service-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sp:
user-service:
users: "[{\"id\":7, \"username\":\"abc\",\"password\":\"123\"},{\"id\":8, \"username\":\"def\",\"password\":\"456\"},{\"id\":9, \"username\":\"ghi\",\"password\":\"789\"},{\"id\":99, \"username\":\"aaa\",\"password\":\"111\"}]"

spring:
application:
name: user-service
cloud:
config:
override-none: true

server:
port: 8101

eureka:
client:
service-url:
defaultZone: http://eureka1:2001/eureka, http://eureka2:2002/eureka

management:
endpoints:
web:
exposure:
include: refresh
37 changes: 37 additions & 0 deletions config/zuul-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
spring:
application:
name: zuul
cloud:
config:
override-none: true

server:
port: 3001

eureka:
client:
service-url:
defaultZone: http://eureka1:2001/eureka, http://eureka2:2002/eureka

zuul:
retryable: true

ribbon:
ConnectTimeout: 1000
ReadTimeout: 1000
MaxAutoRetriesNextServer: 1
MaxAutoRetries: 1

hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 500

management:
endpoints:
web:
exposure:
include: hystrix.stream
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven Integration for Eclipse
#Sun Dec 08 00:01:40 CST 2019
#Mon Dec 09 22:35:58 CST 2019
version=0.0.1-SNAPSHOT
groupId=cn.tedu
m2e.projectName=sp01-commons
Expand Down
2 changes: 1 addition & 1 deletion sp02-itemservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@
</dependency>
</dependencies>
</dependencyManagement>
</project>
</project>
2 changes: 1 addition & 1 deletion sp03-userservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
</dependency>
</dependencies>
</dependencyManagement>
</project>
</project>
2 changes: 1 addition & 1 deletion sp04-orderservice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
</dependency>
</dependencies>
</dependencyManagement>
</project>
</project>
2 changes: 1 addition & 1 deletion sp11-zuul/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
</plugins>
</build>

</project>
</project>
2 changes: 1 addition & 1 deletion sp12-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
</plugins>
</build>

</project>
</project>

0 comments on commit f1f3a1f

Please sign in to comment.