Skip to content

Commit a758176

Browse files
committed
m
1 parent 49bf25f commit a758176

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

spring-cloud-zuul/spring-cloud-zuul/src/main/java/com/neo/ZuulApplication.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.springframework.context.annotation.Bean;
99

1010
@SpringBootApplication
11-
//@EnableCircuitBreaker
1211
@EnableZuulProxy
1312
public class ZuulApplication {
1413

spring-cloud-zuul/spring-cloud-zuul/src/main/java/com/neo/fallback/ProducerFallback.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.neo.fallback;
22

3-
import com.neo.filter.TokenFilter;
43
import org.slf4j.Logger;
54
import org.slf4j.LoggerFactory;
65
import org.springframework.cloud.netflix.zuul.filters.route.FallbackProvider;
@@ -48,7 +47,7 @@ public void close() {
4847

4948
@Override
5049
public InputStream getBody() throws IOException {
51-
return new ByteArrayInputStream("Producer service unavailable".getBytes());
50+
return new ByteArrayInputStream("The service is unavailable.".getBytes());
5251
}
5352

5453
@Override

0 commit comments

Comments
 (0)