File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
spring-cloud-zuul/spring-cloud-zuul/src/main/java/com/neo Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 8
8
import org .springframework .context .annotation .Bean ;
9
9
10
10
@ SpringBootApplication
11
- //@EnableCircuitBreaker
12
11
@ EnableZuulProxy
13
12
public class ZuulApplication {
14
13
Original file line number Diff line number Diff line change 1
1
package com .neo .fallback ;
2
2
3
- import com .neo .filter .TokenFilter ;
4
3
import org .slf4j .Logger ;
5
4
import org .slf4j .LoggerFactory ;
6
5
import org .springframework .cloud .netflix .zuul .filters .route .FallbackProvider ;
@@ -48,7 +47,7 @@ public void close() {
48
47
49
48
@ Override
50
49
public InputStream getBody () throws IOException {
51
- return new ByteArrayInputStream ("Producer service unavailable" .getBytes ());
50
+ return new ByteArrayInputStream ("The service is unavailable. " .getBytes ());
52
51
}
53
52
54
53
@ Override
You can’t perform that action at this time.
0 commit comments