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