Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- @Controller
- public class RequestForwardingController {
- @RequestMapping(value = "/**/{[path:[^\.]*}")
- public String redirect() {
- // Forward to home page so that angular routing is preserved.
- return "forward:/";
- }
- }
Add Comment
Please, Sign In to add comment