🐛 Fixing a bug. text 输出乱码问题

This commit is contained in:
冷冷 committed 2019-03-13 16:48:39 +08:00
1 parent 910739c090
commit 7083019d6b
1 file changed
+1 -1
@@ -46,7 +46,7 @@ public class RouterFunctionConfiguration {
public RouterFunction routerFunction() {
return RouterFunctions.route(
RequestPredicates.path("/fallback")
.and(RequestPredicates.accept(MediaType.TEXT_PLAIN)), hystrixFallbackHandler)
.and(RequestPredicates.accept(MediaType.APPLICATION_JSON_UTF8)), hystrixFallbackHandler)
.andRoute(RequestPredicates.GET("/code")
.and(RequestPredicates.accept(MediaType.TEXT_PLAIN)), imageCodeHandler)
.andRoute(RequestPredicates.GET("/swagger-resources")