Code Snippet- Redirection in Spring MVC

    @RequestMapping(value = "/admin")
    public String openDashboard() {
        return "redirect:/admin/admin-home";
    }
    @RequestMapping(value = "/admin/admin-home")
    public String adminHome() {
        return "dpgsource/admin-dashboard";
    }
    

No comments:

Popular Posts