package com.jwipc.web;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p> </p>
 *
 * @author ZhangJie
 * @version 1.0
 * @since JDK 1.8
 */
@Controller
@RequiredArgsConstructor
public class ErrorPageController {
    @RequestMapping("notFoundPage")
    public String error404() {
        return "/404";
    }

    @RequestMapping("errorPage")
    public String error500() {
        return "/500";
    }
}
