All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloud.boot.exception.errorPage.CustomErrorController Maven / Gradle / Ivy

/*
package com.cloud.boot.exception.errorPage;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.Map;

@Controller
@RequestMapping(value = "/c_error/error")
public class CustomErrorController {
    private static final ThreadLocal> local = new ThreadLocal>();
    public static Map getLocal() {
        return local.get();
    }
    public static void setLocal(Map str) {
        local.set(str);
    }

    @RequestMapping
    public String errorPage(Model model){
        model.addAttribute("error", getLocal().get("error"));
        model.addAttribute("home", getLocal().get("home"));
        return "/error/error";
    }

}
*/




© 2015 - 2024 Weber Informatics LLC | Privacy Policy