무중단 배포용 /health 200 응답 기능 Spring Security 예외 처리 추가
Some checks failed
Main-Build / build-and-push (push) Failing after 22s
Some checks failed
Main-Build / build-and-push (push) Failing after 22s
This commit is contained in:
@@ -91,7 +91,7 @@ public class MainController {
|
||||
return startPage;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/health", method = RequestMethod.GET)
|
||||
@RequestMapping(value = "/health.do", method = RequestMethod.GET)
|
||||
public void health(HttpServletResponse response) throws IOException {
|
||||
response.setStatus(HttpServletResponse.SC_OK);
|
||||
response.setContentType("text/plain;charset=UTF-8");
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<security:http pattern="/js/**" security="none"/>
|
||||
<security:http pattern="/resource/**" security="none"/>
|
||||
<security:http pattern="\A/WEB-INF/jsp/.*\Z" request-matcher="regex" security="none"/>
|
||||
<security:http pattern="/health" security="none"/>
|
||||
<security:http pattern="/health.do" security="none"/>
|
||||
|
||||
<egov-security:config id="securityConfig"
|
||||
loginUrl="/login.do"
|
||||
|
||||
Reference in New Issue
Block a user