mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 18:13:18 +09:00
health check 추가
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package kr.co.uplus.ez.api.comm;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/common")
|
||||
public class HealthCheckController {
|
||||
/*
|
||||
* health check 용도로 사용(로직 없음)
|
||||
*/
|
||||
@GetMapping("/healthChk")
|
||||
public void healthChk()
|
||||
{
|
||||
log.debug("health check success.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ public class JwtAuthHeaderFilter extends JwtAuthFilter {
|
||||
// 1. access token이 저장된 헤더 읽기
|
||||
String header = request.getHeader(jwtProps.getHeader().toLowerCase());
|
||||
|
||||
log.info("header authToken: {}" , header);
|
||||
//log.info("header authToken: {}" , header);
|
||||
// 2. 헤더 값 검사
|
||||
if(header == null || !header.startsWith(jwtProps.getPrefix())) {
|
||||
return null;
|
||||
|
||||
@@ -58,7 +58,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
"/v3/api-docs/**",
|
||||
"/",
|
||||
"/socket/**",
|
||||
"/api/v1/bo/sendNumMgt/filedownload"
|
||||
"/api/v1/bo/sendNumMgt/filedownload"
|
||||
,"/common/healthChk"
|
||||
};
|
||||
|
||||
private static final String[] AUTH_URL_ARRAY = {
|
||||
|
||||
Reference in New Issue
Block a user