header-img
Info :
Console 1
list_img
SpringBoot :: ์ดˆ์ดˆ์ดˆ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์œผ๋กœ ์‚ฌ์šฉ์ž ์š”์ฒญ์— ๋Œ€ํ•œ ๊ฒฝ๊ณผ์‹œ๊ฐ„ ์•Œ์•„๋ณด๊ธฐ
2024.01.16
๊ฐœ๋ฐœ ๋„์ค‘ API ํ˜ธ์ถœ ์‹œ๊ฐ„์ด ์˜ค๋ž˜๊ฑธ๋ฆฌ๋Š” ์•„์ด๋ฅผ ๋ฐœ๊ฒฌํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค. DB ์‹œ๊ฐ„์€ SQL ์„ ๋•Œ๋ ค๋ณด๋ฉด ๋‚˜์˜ค๋Š”๋ฐ.. ์˜ˆ์ƒ๋งŒํผ ์˜ค๋ž˜ ๊ฑธ๋ฆฌ์ง€๋Š” ์•Š์•˜๊ณ  ๊ทธ๋ฆฌ๋“œ์— ๋ฐ์ดํ„ฐ๋ฅผ ๋ฟŒ๋ฆฌ๋Š” ๊ฒŒ ์ „๋ถ€์ธ๋ฐ๋‹ค, ๊ทธ๋ฆฌ๋“œ์˜ ๊ฒฝ์šฐ๋Š” ๋ณ„๋„ ๊ตฌํ˜„์—†์ด ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์‚ฌ์šฉ ์ค‘์ด๋ผ์„œ ํ”„๋ก ํŠธ์—”๋“œ์˜ ๋ฌธ์ œ๋„ ์•„๋‹Œ๊ฑฐ ๊ฐ™๊ณ .. ํ˜น์‹œ ๋ชจ๋ฅด๋‹ˆ๊นŒ ๋ฐฑ์—”๋“œ ๊ฒฝ๊ณผ ์‹œ๊ฐ„์ด ์–ด๋–ป๊ฒŒ ๊ฑธ๋ฆฌ๋Š”์ง€ ํ™•์ธ์„ ํ•ด๋ณด๊ณ ์ž ํ–ˆ๋‹ค. ์†Œ์Šค ์ฝ”๋“œ // ์ปจํŠธ๋กค๋Ÿฌ ๋‹จ long startTime = System.currentTimeMillis(); List TactTimeList = tacttimeService.tacttime(paramMap); // Service ํ˜ธ์ถœ๋ถ€ long endTime = System.currentTimeMillis(); long ms = endTime - start..