🔧 health-info API 통일
This commit is contained in:
@@ -7,6 +7,7 @@ import org.egovframe.cloud.boardservice.api.board.dto.BoardResponseDto;
|
|||||||
import org.egovframe.cloud.boardservice.api.board.dto.BoardSaveRequestDto;
|
import org.egovframe.cloud.boardservice.api.board.dto.BoardSaveRequestDto;
|
||||||
import org.egovframe.cloud.boardservice.api.board.dto.BoardUpdateRequestDto;
|
import org.egovframe.cloud.boardservice.api.board.dto.BoardUpdateRequestDto;
|
||||||
import org.egovframe.cloud.boardservice.service.board.BoardService;
|
import org.egovframe.cloud.boardservice.service.board.BoardService;
|
||||||
|
import org.springframework.core.env.Environment;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
import org.springframework.data.domain.Pageable;
|
import org.springframework.data.domain.Pageable;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
@@ -41,6 +42,21 @@ public class BoardApiController {
|
|||||||
*/
|
*/
|
||||||
private final BoardService boardService;
|
private final BoardService boardService;
|
||||||
|
|
||||||
|
private final Environment env;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 서비스 상태 확인
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/actuator/health-info")
|
||||||
|
public String status() {
|
||||||
|
return String.format("GET Board Service on" +
|
||||||
|
"\n local.server.port :" + env.getProperty("local.server.port")
|
||||||
|
+ "\n egov.message :" + env.getProperty("egov.message")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 게시판 페이지 목록 조회
|
* 게시판 페이지 목록 조회
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -51,22 +51,18 @@ public class UserApiController {
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/actuator/health-user")
|
@GetMapping("/actuator/health-info")
|
||||||
public String status() {
|
public String status() {
|
||||||
return String.format("GET User Service on" +
|
return String.format("GET User Service on" +
|
||||||
"\n local.server.port :" + env.getProperty("local.server.port")
|
"\n local.server.port :" + env.getProperty("local.server.port")
|
||||||
+ "\n token expiration time :" + env.getProperty("token.expiration_time")
|
|
||||||
+ "\n spring.datasource.username :" + env.getProperty("spring.datasource.username")
|
|
||||||
+ "\n egov.message :" + env.getProperty("egov.message")
|
+ "\n egov.message :" + env.getProperty("egov.message")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/actuator/health-user")
|
@PostMapping("/actuator/health-info")
|
||||||
public String poststatus() {
|
public String poststatus() {
|
||||||
return String.format("POST User Service on" +
|
return String.format("POST User Service on" +
|
||||||
"\n local.server.port :" + env.getProperty("local.server.port")
|
"\n local.server.port :" + env.getProperty("local.server.port")
|
||||||
+ "\n token expiration time :" + env.getProperty("token.expiration_time")
|
|
||||||
+ "\n spring.datasource.username :" + env.getProperty("spring.datasource.username")
|
|
||||||
+ "\n egov.message :" + env.getProperty("egov.message")
|
+ "\n egov.message :" + env.getProperty("egov.message")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user