|
|
@ -17,7 +17,7 @@ import java.io.IOException; |
|
|
|
@Controller |
|
|
|
@Controller |
|
|
|
public class RedirectController { |
|
|
|
public class RedirectController { |
|
|
|
|
|
|
|
|
|
|
|
@Value("${zuul.servlet-path}") |
|
|
|
@Value("${zuul.servlet-path:/zuul}") |
|
|
|
private String path; |
|
|
|
private String path; |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/{method}/{version}/") |
|
|
|
@RequestMapping("/{method}/{version}/") |
|
|
@ -32,4 +32,12 @@ public class RedirectController { |
|
|
|
request.getRequestDispatcher(path).forward(request, response); |
|
|
|
request.getRequestDispatcher(path).forward(request, response); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/") |
|
|
|
|
|
|
|
public void index( |
|
|
|
|
|
|
|
HttpServletRequest request |
|
|
|
|
|
|
|
, HttpServletResponse response |
|
|
|
|
|
|
|
) throws ServletException, IOException { |
|
|
|
|
|
|
|
request.getRequestDispatcher(path).forward(request, response); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|