Guest User

Untitled

a guest
Dec 12th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import org.springframework.stereotype.Controller;
  2. import org.springframework.web.bind.annotation.RequestMapping;
  3.  
  4. @Controller
  5. public class RequestForwardingController {
  6. @RequestMapping(value = "/**/{[path:[^\.]*}")
  7. public String redirect() {
  8. // Forward to home page so that angular routing is preserved.
  9. return "forward:/";
  10. }
  11. }
Add Comment
Please, Sign In to add comment