12345678910111213141516171819 |
- package com.fcb.gateway.controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.HashMap;
- import java.util.Map;
- @RestController
- public class FallbackController {
- @RequestMapping("/defaultFallback")
- public Map defaultFallback() {
- Map map = new HashMap<>();
- map.put("code", 1);
- map.put("message", "服务异常");
- return map;
- }
- }
|