whitelabel 에러 페이지 리다이렉트
parent
a3bf6ad82c
commit
d1f4b2112a
|
|
@ -0,0 +1,19 @@
|
||||||
|
package com.dbnt.faisp.config;
|
||||||
|
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.springframework.boot.web.servlet.error.ErrorController;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
public class CustomErrorController implements ErrorController {
|
||||||
|
|
||||||
|
@GetMapping("/errors")
|
||||||
|
public ModelAndView errorsToRedirectRoot() {
|
||||||
|
return new ModelAndView("redirect:/");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
spring.devtools.livereload.enabled=true
|
spring.devtools.livereload.enabled=true
|
||||||
|
server.error.whitelabel.enabled=false
|
||||||
|
server.error.path=/errors
|
||||||
|
|
||||||
tomcat.ajp.protocol=HTTP/1.1
|
tomcat.ajp.protocol=HTTP/1.1
|
||||||
tomcat.cluster.enabled=false
|
tomcat.cluster.enabled=false
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
|
||||||
|
server.error.whitelabel.enabled=false
|
||||||
|
server.error.path=/errors
|
||||||
|
|
||||||
#tomcat
|
#tomcat
|
||||||
tomcat.ajp.protocol=HTTP/1.1
|
tomcat.ajp.protocol=HTTP/1.1
|
||||||
#tomcat.ajp.protocol=AJP/1.3
|
#tomcat.ajp.protocol=AJP/1.3
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
|
||||||
|
server.error.whitelabel.enabled=false
|
||||||
|
server.error.path=/errors
|
||||||
|
|
||||||
#tomcat
|
#tomcat
|
||||||
tomcat.ajp.protocol=HTTP/1.1
|
tomcat.ajp.protocol=HTTP/1.1
|
||||||
#tomcat.ajp.protocol=AJP/1.3
|
#tomcat.ajp.protocol=AJP/1.3
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
|
||||||
|
server.error.whitelabel.enabled=false
|
||||||
|
server.error.path=/errors
|
||||||
|
|
||||||
#tomcat
|
#tomcat
|
||||||
tomcat.ajp.protocol=AJP/1.3
|
tomcat.ajp.protocol=AJP/1.3
|
||||||
tomcat.cluster.enabled=true
|
tomcat.cluster.enabled=true
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
|
||||||
|
server.error.whitelabel.enabled=false
|
||||||
|
server.error.path=/errors
|
||||||
|
|
||||||
#tomcat
|
#tomcat
|
||||||
tomcat.ajp.protocol=AJP/1.3
|
tomcat.ajp.protocol=AJP/1.3
|
||||||
tomcat.cluster.enabled=true
|
tomcat.cluster.enabled=true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue