-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
...ni-api-server/app/src/main/java/org/haedal/zzansuni/controller/HealthCheckController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
package org.haedal.zzansuni.controller; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.haedal.zzansuni.core.api.ApiResponse; | ||
import org.springframework.core.env.Environment; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.Arrays; | ||
|
||
@RequiredArgsConstructor | ||
@RestController | ||
@Slf4j | ||
public class HealthCheckController { | ||
private final Environment env; | ||
|
||
@GetMapping("/health") | ||
public String healthCheck() { | ||
return "ok"; | ||
return "ok" + Arrays.toString(env.getActiveProfiles()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ INSERT INTO users (exp, created_at, last_modified_at, auth_token, email, nicknam | |
provider, role) | ||
VALUES (0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', 'NAVER_HP6Yyh7SIkk8QS1VFtEylxrxo23UxNTBHcAjfTw-BHM', null, | ||
'bayy', null, null, 'NAVER', 'ADMIN'), | ||
(0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test1@a.c', 'testUser1', | ||
(0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'manager@a.c', 'testUser1', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', null, null, 'MANAGER'), | ||
(49, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, '[email protected]', '이원', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', null, null, 'USER'), | ||
|
@@ -43,64 +43,64 @@ VALUES (0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', 'NAVER_HP6Yyh7SIkk8QS1V | |
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', null, null, 'USER'), | ||
(31, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, '[email protected]', '효범', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', null, null, 'USER'), | ||
(57, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test0@a.c', '기태', | ||
(57, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt0@a.c', '기태', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/se/U2uEiDz/640/480', | ||
null, 'USER'), | ||
(28, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test1@a.c', '한서', | ||
(28, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt1@a.c', '한서', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/se/MSVzesxY/640/480', | ||
null, 'USER'), | ||
(38, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test2@a.c', '승리', | ||
(38, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt2@a.c', '승리', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/se/KUZmdj5Zn/640/480', | ||
null, 'USER'), | ||
(87, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test3@a.c', '찬석', | ||
(87, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt3@a.c', '찬석', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=4114472343961600', null, 'USER'), | ||
(76, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test4@a.c', '은현', | ||
(76, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt4@a.c', '은현', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=4231310094630912', null, 'USER'), | ||
(15, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test5@a.c', '성권', | ||
(15, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt5@a.c', '성권', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=4323334812598272', null, 'USER'), | ||
(21, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test6@a.c', '찬휘', | ||
(21, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt6@a.c', '찬휘', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=8502500980162560', null, 'USER'), | ||
(90, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test7@a.c', '충만', | ||
(90, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt7@a.c', '충만', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/seed/IkQoFVE/640/480', | ||
null, 'USER'), | ||
(31, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test8@a.c', '태식', | ||
(31, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt8@a.c', '태식', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=1946817203798016', null, 'USER'), | ||
(13, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test9@a.c', '순규', | ||
(13, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt9@a.c', '순규', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=1005792186597376', null, 'USER'), | ||
(57, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test10@a.c', '성빈', | ||
(57, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt10@a.c', '성빈', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com40/480?lock=5094699765334016', null, 'USER'), | ||
(0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test11@a.c', '조슈', | ||
(0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt11@a.c', '조슈', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=7842715689549824', null, 'USER'), | ||
(0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test12@a.c', '성목', | ||
(0, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt12@a.c', '성목', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/seed/T0GXvPB9C5/640/480', | ||
null, 'USER'), | ||
(65, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test13@a.c', '주엽', | ||
(65, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt13@a.c', '주엽', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/sd/GTUgLFvuZ/640/480', | ||
null, 'USER'), | ||
(79, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test14@a.c', '지섭', | ||
(79, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt14@a.c', '지섭', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', 'https://picsum.photos/sd/HqevoSPB/640/480', | ||
null, 'USER'), | ||
(9, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test15@a.c', '혜승', | ||
(9, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt15@a.c', '혜승', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com/0/480?lock=3226888453488640', null, 'USER'), | ||
(15, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test16@a.c', '모세', | ||
(15, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt16@a.c', '모세', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com40/480?lock=929401032146944', null, 'USER'), | ||
(64, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test17@a.c', '혁주', | ||
(64, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt17@a.c', '혁주', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com40/480?lock=1474097934499840', null, 'USER'), | ||
(64, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test18@a.c', '예솔', | ||
(64, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt18@a.c', '예솔', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com40/480?lock=5535552531070976', null, 'USER'), | ||
(38, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'test19@a.c', '근영', | ||
(38, '2023-05-31 10:00:00', '2023-05-31 12:00:00', null, 'testt19@a.c', '근영', | ||
'$2a$10$h1VlKrjjHSnuRoeCnl1reOh.oaAw6EqxrSMB0FVClpOb1S2D.K.ZK', | ||
'https://loremflickr.com40/480?lock=7618880130252800', null, 'USER'); | ||
|
||
|