์ ์ฒด ๊ธ78 [RabbitMQ] RabbitMQ ๊ธฐ๋ณธ ๊ฐ๋ ๋ด๊ฐ ํ๋ก ํธ์๋ ๊ฐ๋ฐ๋ก ์ฐธ์ฌํ ํ๋ก์ ํธ๊ฐ ์๋ค. ์ง๊ธ์ ์ข ๋ฃ๋์์ง๋ง, ๊ฐ ์๋ฒ๋ผ๋ฆฌ ๋ฉ์์ง๋ฅผ ์ฃผ๊ณ ๋ฐ์ ์บ์ ๋ฐ์ดํฐ ๋ฑ์ ๊ณต์ ํ๊ธฐ ์ํด RabbitMQ๊ฐ ์ฌ์ฉ๋์๋ค. ๋ด๊ฐ ์ง์ RabbitMQ๋ฅผ ์ธํ ํ ๊ฒ์ ์๋์ง๋ง, ์น์์ ์บ์๊ฐ ๋ณ๊ฒฝ๋๋ฉด RabbitMQ์ ๋ฌผ๋ ค์๋ ์๋ฒ๋ค์๊ฒ ๋ ธํฐ๋ฅผ ํด์ฃผ์๋ค. ํ๋ก์ ํธ ๋ง๊ฐ ํ ์กฐ๊ธ์ ์ฌ์ ๊ฐ ์๊ฒจ, RabbitMQ๊ฐ ์ ํํ ๋ฌด์์ธ์ง ๊ถ๊ธํด ์์๋ณด์๋ค. 2020 KT CPN ์์คํ FM ์๋ฒ ๊ฐ์ ๋ ธํฐ ์ฒ๋ฆฌ๋ฅผ ์ํด ์ฌ์ฉ ๋ํ์ ์ผ๋ก ํ ์๋ฒ์์ ์บ์๊ฐ ๋ณ๋๋๋ฉด, ๋ค๋ฅธ ์๋ฒ์๋ ๋์ผํ ์์ ์ ํ๋๋ก ํ๊ธฐ ์ํจ์ด๋ค. RabbitMQ ๊ฐ๋ RabbitMQ๋? AMQP ํ๋กํ ์ฝ์ ๊ตฌํํ ๋ฉ์์ง ์ค๊ฐ์ธ์ด๋ค. Producer์๊ฒ ๋ฉ์์ง๋ฅผ ๋ฐ์ Consumer์๊ฒ ์ ๋ฌํด์ฃผ๋ ์๋น์ค๋ก ์์ค.. 2020. 11. 19. [JAVA] @Transactional ์บ์ฑ ๋ฌธ์ .. @Transactional ์ฌ์ฉํ๋๋ฐ.. ๋ถ๋ชจ๋ฉ์๋์์ PromCpnType origin = promCpnTypeMapper.readPromCpnType(param);PromCpnType param = new PromCpnType(); param.setCpnTypeId(promCpnType.getCpnTypeId()); param.setIssDstrSeq(promCpnType.getIssDstrSeq()); PromCpnType origin = promCpnTypeMapper.readPromCpnType(param); ์์ ๋ฉ์๋์์ PromCpnType param = new PromCpnType(); param.setCpnTypeId(promCpnType.getCpnTypeId()); param.set.. 2020. 11. 18. [MYSQL] DB ํํฐ์ ๋ 2020 - [KT] CPN DB ์ฑ๋ฅ์ ์ํด ํํฐ์ ๋ ์์ . ๋์ ํ ์ด๋ธ API_LOG (api ๋ก๊ทธ ๊ธฐ๋ก ํ ์ด๋ธ) CPN_DTL_USE_HST (์ฟ ํฐ ์ฌ์ฉ์ด๋ ฅ ํ ์ด๋ธ) CPN (์ ์ฒด ์ฟ ํฐ ์ ์ฅ ํ ์ด๋ธ) ๊ฒฐ๊ณผ API_LOG๋ RAGE๋ก CPN_DTL_USE_HST๋ HASH๋ก CPN์ ํ์ง ์์๋ค. ์ด์ ๋ ๋ณ ์ฐจ์ด๊ฐ ์์ด์ ํํฐ์ ๋(Partitioning)์ด๋? ๊ณ๋ TABLE์ 'ํํฐ์ (Partition)'์ด๋ผ๋ ์์ ๋จ์๋ก ๋๋์ด ๊ด๋ฆฌํ๋ ๊ธฐ๋ฒ์ด๋ค. 'ํํฐ์ (Partition)'๊ธฐ๋ฒ์ ํตํ์ฌ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ๋ถ์ฐ์ฒ๋ฆฌํ๊ณ , ์ฑ๋ฅ ์ ํ๋ฅผ ๋ฐฉ์งํ๋ค. ๋ ผ๋ฆฌ์ ์ธ ๋ฐ์ดํฐ(element)๋ค์ ๋ค์์ entity๋ก ์ชผ๊ฐ๋ ํ์๋ฅผ ๋ปํ๋ ์ผ๋ฐ์ ์ธ ์ฉ์ด ๋์ฉ๋์ Table์ด๋ index๋ฅผ ๊ด๋ฆฌํ๊ธฐ ์ฌ์ด partitio.. 2020. 11. 16. [JavaScript] ํด๋ก์ (Closure) ํด๋ก์ (Closure)๋? - MDN์์์ ์ ์ ํด๋ก์ ๋ ๋ ๋ฆฝ์ ์ธ (์์ ) ๋ณ์๋ฅผ ๊ฐ๋ฆฌํค๋ ํจ์์ด๋ค. ๋๋, ํด๋ก์ ์์ ์ ์๋ ํจ์๋ ๋ง๋ค์ด์ง ํ๊ฒฝ์ ‘๊ธฐ์ตํ๋ค’. “A closure is the combination of a function and the lexical environment within which that function was declared.” ํด๋ก์ ๋ ํจ์์ ๊ทธ ํจ์๊ฐ ์ ์ธ๋์ ๋์ ๋ ์์ปฌ ํ๊ฒฝ(Lexical environment)๊ณผ์ ์กฐํฉ์ด๋ค. ํด๋ก์ ๋ ๋จ์ํ ํจ์ ์ธ๋ถ์ ๋ณ์์ ์ ๊ทผ ๊ฐ๋ฅํ ๋ด๋ถ ํจ์๊ฐ ์๋๋ค. ํจ์ ์คํ์ ์ธ๋ถ ๋ณ์ ์ ๊ทผ์ ์ํด, ํจ์๊ฐ ์ ์ธ๋ ๋ ๋ฉ๋ชจ๋ฆฌ์ ์ ์ฅ๋๋ ๊ฐ์ฒด์ด๋ค. function outFunc(){ var reason = "test"; var v.. 2020. 11. 13. [Bootstrap] SweetAlert2์ input์ ํฌ์ปค์ฑ์ด ์๋๋ ํ์ Bootstrap์ SweetAlert2 input์ ํฌ์ปค์ฑ์ด ์๋จ. modal๋ด์ focusin์ด๋ฒคํธ ์ค๋ณต ํ์์ผ๋ก ํด๋น ์ด๋ฒคํธ๋ฅผ ์ ๊ฑฐํด์ฃผ๋ฉด ๋๋ค. $(document).off('focusin.modal'); 2020. 11. 13. [JAVA] Excel Download - ์ฝ๊ธฐ, ์์ , ๋ค์ด๋ก๋ (Servlet, POI) 2020.11.13 ์๋ฒ์ ์ ๋ก๋๋์ด ์๋ ํ์ผ์ ์ฝ์ ํ ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐ(์์ )ํ๊ณ ๋ค์ด๋ก๋ํ๋ ๊ธฐ๋ฅ ๊ตฌํ - ์ ๋ก๋๋์ด ์๋ ํ์ผ (์์) - DB์ ์ ์ฅ๋ ๋ฐ์ดํฐ๋ฅผ ์์ ์ ์ถ๊ฐ ์ฌ์ฉ - HttpServletRequest, HttpServletResponse - FileInputStream - XSSFWorkbook - ServletOutputStream 1. Controller API๋ฅผ ํธ์ถํ๋ฉด ์์ ๋ค์ด๋ก๋ ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ Service๋ฅผ ํธ์ถํ๋ค. @GetMapping(value = "/v1/cpnType/{cpnTypeId}/promotion/iss/{issDstrSeq}/target/excel/down") public void excelDownloadIssTarget(HttpServletRequ.. 2020. 11. 13. ์ด์ 1 ยทยทยท 6 7 8 9 ๋ค์