Last active
April 20, 2023 08:56
-
-
Save hurtigcodes/67407e9a01a95a7ee2c632c5d659054a to your computer and use it in GitHub Desktop.
Redirect requests with Spring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Hidden | |
@GetMapping("/") | |
public ModelAndView redirect(ModelMap model) { | |
// model.addAttribute("attribute", "redirectWithRedirectPrefix"); | |
return new ModelAndView("redirect:/swagger-ui.html", model); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment