Java

๋ณ‘ํ•ฉํ•˜๋Š” ๋ฐฉ๋ฒ• ๊ธฐ๋ก CellRangeAddress region1 = new CellRangeAddress(0,0,1,2); sheet.addMergedRegion(region1); CellRangeAddress region2 = new CellRangeAddress(0,0,3,4); sheet.addMergedRegion(region2); CellRangeAddress region3 = new CellRangeAddress(0,0,5,6); sheet.addMergedRegion(region3); CellRangeAddress region4 = new CellRangeAddress(0,1,0,0); sheet.addMergedRegion(region4); Row row = sheet.createRow(0..
ํ…Œ์ŠคํŠธ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋ฉด์„œ ๋ฐ˜ํ™˜๊ฐ’ ์—†๋Š” ๋ฉ”์„œ๋“œ๋ฅผ ํ…Œ์ŠคํŠธํ•ด์•ผํ•  ๊ฒฝ์šฐ๊ฐ€ ์ƒ๊ฒผ๋‹ค. ์ด ๋ฉ”์„œ๋“œ๋Š” Message๋ฅผ ๋ณด๋‚ด๋Š” ๊ธฐ๋Šฅ์„ ํ•˜๋Š” ๋ฉ”์„œ๋“œ์ด๊ธฐ ๋•Œ๋ฌธ์— ๋‚ด๋ถ€์—์„œ ๋ฉ”์„ธ์ง€๋ฅผ ๋ณด๋‚ด๊ณ , ๋กœ๊ทธ ์ €์žฅ ํ›„ ๋ฐ˜ํ™˜ํ•˜๋Š” ๊ฐ’์ด ์—†๋‹ค. ๋‚˜๋Š” ์ด ๋‚ด๋ถ€์—์„œ ๋ฐ์ดํ„ฐ ์ •์ œ๊ฐ€ ๋๋‚œ ํ›„ ๋งˆ์ง€๋ง‰์— private send(RequestDto request) ์— ์ „๋‹ฌ๋˜๋Š” RequestDto ๋ฅผ ์•Œ๊ณ  ์‹ถ์—ˆ๋‹ค. private sendMessageList(){ // ๋ฐ์ดํ„ฐ ์ •์ œ send(reqeust); } private send(RequestDto request){ // ์‹ค์ œ๋กœ ์ „์†ก } ์ด๋•Œ, ArgumentCaptor ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค. @Test void sendMessageTest() { sendService.sendMessageList(new Oth..
Java ์˜ ์ผ๋ฐ˜์ ์ธ ๋ฌธ์ œ ์ค‘ ํ•˜๋‚˜๋Š” ๋†’์€ ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋Ÿ‰์œผ๋กœ ์ธํ•ด ์„ฑ๋Šฅ, ์ถฉ๋Œ์ด ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค. ์ตœ์ ํ™” ๋ฐ ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋Ÿ‰ ๊ฐ์†Œ๋ฅผ ์œ„ํ•œ ๋ชจ๋ฒ• ์‚ฌ๋ก€๋ฅผ ์‚ดํŽด๋ณด์ž 1. Primitive type(์›์‹œํƒ€์ž…) ์„ ์‚ฌ์šฉํ•˜์ž. ์ฐธ์กฐํƒ€์ž… ๋ณด๋‹ค ์›์‹œํƒ€์ž…์„ ์‚ฌ์šฉํ•œ๋‹ค. ์›์‹œํƒ€์ž…์„ ์‚ฌ์šฉํ•˜๋ฉด ๊ฐœ์ฒด ์ƒ์„ฑ ์˜ค๋ฒ„ํ—ค๋“œ๋ฅผ ๋ฐฉ์ง€ํ•˜์—ฌ ๋ฉ”๋ชจ๋ฆฌ๋ฅผ ์ ˆ์•ฝํ•  ์ˆ˜ ์žˆ๋‹ค. + ๋˜ํ•œ ์›์‹œํƒ€์ž…์€ ์Šคํƒ ๋ฉ”๋ชจ๋ฆฌ ์—์„œ ๋ฐ”๋กœ ์ฝ๊ณ , ์ฐธ์กฐํƒ€์ž…์€ ์Šคํƒ ๋ฉ”๋ชจ๋ฆฌ์—์„œ ํž™ ๋ฉ”๋ชจ๋ฆฌ์˜ ์œ„์น˜๋ฅผ ๊ตฌํ•ด์˜จ ๋‹ค์Œ์— ๋‹ค์‹œ ํž™ ๋ฉ”๋ชจ๋ฆฌ์— ๊ฐ€์„œ ๊ฐ’์„ ์ฝ์–ด์™€์•ผ ํ•ด์„œ ์„ฑ๋Šฅ์ƒ ์œ ๋ฆฌํ•˜๋‹ค. 2. ๋ถˆํ•„์š”ํ•œ ๊ฐ์ฒด ์ƒ์„ฑ ํ•˜์ง€๋ง์ž. String s = "์• ์ •์“ฐ"+" ์ž…๋‹ˆ๋‹ค"; ํ•ด๋‹น ์ฝ”๋“œ ํ•œ์ค„์€ "์• ์ •์“ฐ ์ž…๋‹ˆ๋‹ค" ์— ๋Œ€ํ•œ ์ƒˆ ๋ฌธ์ž์—ด ๊ฐœ์ฒด๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ๋Œ€์‹  StringBuilder ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฌธ์ž์—ด์„ ..
์‚ฌ์šฉ์ž ์ „์ฒด ์กฐํšŒ๋ฅผ ํ•ด๋ณด์•˜๋‹ค. ์ฒ˜์Œ ์‚ฌ์šฉํ•ด๋ด์„œ ์‚ฝ์งˆ์„ ์กฐ๊ธˆ ํ–ˆ๋Š”๋ฐ ์žฌ๋ฏธ์žˆ์—ˆ๊ณ , ๋ฌด์—‡๋ณด๋‹ค ๋ฐ์ดํ„ฐ๋ฅผ ์‰ฝ๊ฒŒ ํ‘œํ˜„ํ•  ์ˆ˜ ์žˆ๊ณ  ๊ธฐ๋Šฅ์ด ๋งŽ์€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ผ์„œ ์œ ์ตํ–ˆ๋‹ค. ๋จผ์ € ์‚ฌ์šฉํ•˜๋ ค๋ฉด ์Šคํฌ๋ฆฝํŠธ๋ฅผ ํฌํ•จํ•ด์ค˜์•ผ ํ•œ๋‹ค. www.cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css www.cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js HTML ์ฝ”๋“œ ์‚ฌ์šฉ์žID ์‚ฌ์šฉ์ž ์ด๋ฆ„ ์ „ํ™”๋ฒˆํ˜ธ E-mail ๊ถŒํ•œ JavaScript ์ฝ”๋“œ $(document).ready(function() { $("#deviceTable").DataTable({ "pageLength": 10, ajax:{ url:"./userAll.do", type:"GET"..
์• ์ •์“ฐ
'Java' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก