IT/development212 [JavaScript] ๊ฐ์ฒด ํด์ฒด ํ ๋น(Object Destructuring Assignment)(feat. ES6) ES6๋ถํฐ ์ง์ํ๋ ๊ธฐ๋ฅ ์ค ํ๋์ธ ๊ฐ์ฒด ํด์ฒด ํ ๋น ๊ฐ์ฒด์์ ๋ฐ๋ก ๋ณ์์ ๊ฐ์ ํ๋ฒ์ ํ ๋นํ ๋ ์ฌ์ฉ(์ฝ๋์ ๊ฐ๋ ์ฑ ๋ฐ ๊ฐ์ฒด์ ์์ฑ์ ๋ ์ฝ๊ฒ ์ถ์ถ) //๊ฐ์ฒด์ ๊ตฌ์กฐ๊ฐ ๋ณต์กํ๊ฑฐ๋ ์ฌ๋ฌ๊ฐ์ ์์ฑ์ ํ๋ฒ์ ์ถ์ถํ ๋ ์ ์ฉํ๊ฒ ์ฌ์ฉ๋จ const person = { name: '์ดํฅ', age: 50 }; //๊ฐ์ฒดํด์ฒดํ ๋น์ ํตํด ๊ฐ์ฒด์ ์์ฑ๊ฐ์ ๋ฐ๋ก ๋ณ์์ ํ ๋น const { name, age } = person; //๋ณ์๋ช ๋ณ๊ฒฝ๋ ๊ฐ๋ฅ(์๋๋ person๊ฐ์ฒด์ name๊ฐ์ uname์ด๋ผ๋ ๋ณ์์ ํ ๋นํ๋ ์์) //const { name: uname } = person; console.log(name); // '์ดํฅ' console.log(age); // 50 //๊ฐ์ฒด ํด์ฒด ํ ๋น ๋ฏธ์ฌ์ฉ const person.. IT/development 2023. 10. 4. [thymeleaf] ๋์ url ์์ฑ(feat. @{/url}) ์ฌ์ฉ์๋ชฉ๋ก ์น ์ ํ๋ฆฌ์ผ์ด์ ์ Context Path๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์๋๊ฒฝ๋ก๋ก URL ์์ฑ Conext Path๊ฐ "/"์ผ ๊ฒฝ์ฐ ์์ ๊ฐ์ด ์์ฑํ ๊ฒฝ์ฐ ํธ์คํธ:8080/user๋ก url์ด ์์ฑ๋๋ค. ๋ณดํต ์ ์ url๋ง๊ณ ๋์ url์ ๋ง์ด ์ฌ์ฉํ๋ค. โป ์ ์ url ์์ฑ ์ ๋ฆฌ์์ค ๊ฒฝ๋ก๊ฐ ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ ๋ค์ ๋ณ๊ฒฝํด์ผ ํ๋ค. IT/development 2023. 9. 24. [springBoot] ์ธํฐ์ ํฐ๋ฅผ ํตํด ๋ฉ๋ด ์ ๊ทผ ๊ด๋ฆฌ ์์คํ ์์๋ ๋ณด์ ๋๋ฌธ์ ๋ก๊ทธ์ธํ ์ฌ์ฉ์์ ๋ฉ๋ด ์ ๊ทผ ๋ฒ์๋ฅผ ์ ํํด์ผ ํ๋ค. ์๋ฅผ ๋ค์ด ์์คํ ๊ด๋ฆฌ์๋ ์์คํ ๊ด๋ฆฌ ๋ฉ๋ด๋ง ์ ๊ทผํ ์ ์์ด์ผ ํ๊ณ ๊ธ์ฌ๊ด๋ฆฌ์๋ ๊ธ์ฌ๋ฉ๋ด์๋ง ์ ๊ทผํ ์ ์์ด์ผ ํ๋ค. ์ธํฐ์ ํฐ๋ฅผ ํตํด ์๋์ฒ๋ผ ๊ตฌํํ๋ค. package kr.dev.common.interceptor; import kr.dev.cmmn.mapper.CmmnMapper; import kr.dev.cmmn.model.MenuVo; import kr.dev.cmmn.service.CmmnService; import kr.dev.user.model.EmpVO; import kr.dev.user.service.UserService; import lombok.extern.slf4j.Slf4j; import org.springf.. IT/development 2023. 9. 24. [Vue.js] checkbox ์ผ๊ด ์ฒดํฌ ์ ์ฒด์ ํ {{ item.name }} checkbox element๋ฅผ v-model๋ก data์ items์ isChecked์์ฑ๊ณผ ์๋ฐฉํฅ ๋ฐ์ธ๋ฉ ์ํจ ํ ์ ์ฒด์ ํ ๋ฒํผ ํด๋ฆญ ์ items๋ฅผ ์ํํ๋ฉฐ isChecked๋ฅผ ํ์ฌ ์ํ์ ๋ฐ๋๋ก ์ค์ IT/development 2023. 9. 24. [development] ํฐ์คํ ๋ฆฌ ์ผ๊ด ๋๊ธ ์์ฑ ๊ฐ๋ฐ(feat. open API) ํฐ์คํ ๋ฆฌ Open API ์ด์ฉํด์ ๊ฒ์๊ธ ์ค ๋๊ธ์ด ์๋ ๋ชฉ๋ก๋ง ์ผ๊ด ๋๊ธ ์์ฑ ํ๋ ๊ธฐ๋ฅ ๊ฐ๋ฐ ์ค.. ์ญ์ ํ์๋ก ํด์ ๋ง๋๋ ๊ฒ์ ์ฌ๋ฐ๋ค. IT/development 2023. 9. 13. [base64] ์ด๋ฏธ์ง๋ฅผ base64๋ก ์ธ์ฝ๋ฉ ์ด๋ฏธ์ง๋ฅผ base64๋ก ์ธ์ฝ๋ฉ ํ ๋ค์ ๋ฌธ์์ด๋ก html์ ์ฝ์ ์๋์ ๊ฐ์ base64 ํด์ ์ด์ฉํด ์ด๋ฏธ์ง๋ฅผ base64๋ก ๋ณํ Image to Base64 | Base64 Encode | Base64 Converter | Base64 Image to Base64 Convert image to Base64 online and use the result string as data URI, img src, CSS background-url, and others. Sometimes you have to send or output an image within a text document (for example, HTML, CSS, JSON, XML), but you cannot do this base64.gu.. IT/development 2023. 9. 9. [JavaScript] htmlToPdf convert(feat. html2pdf) ๋ชฉ์ฐจ javascript/jQuery ๊ธฐ๋ฐ Hello, PDF! This is an example of converting HTML to PDF using html2pdf.js javascript/Vue.js ๊ธฐ๋ฐ Hello, PDF! This is an example of converting HTML to PDF using html2pdf.js convert ์จ๊น ํญ๋ชฉ PDF ๋ณํ ์์ ์จ๊น ํญ๋ชฉ์ ๋ฒํผ ํด๋ฆญ ์ ์ ์ ๋ณด์ด๊ฒ ํด์ PDF ๋ณํ ํ ๋ค์ด๋ก๋ ํ ๋ค์ ์จ๊น์ฒ๋ฆฌ ํ๋ ์์ Hello, PDF! This is an example of converting HTML to PDF using html2pdf.js convert ๊ฒฐ๊ณผ ์์ฝ๋ ์๋ํฐ์ ๋ถ์ฌ ๋ฃ๊ณ ์คํํ๋ฉด pdf ๋ค์ด๋ก๋ ์ฐฝ ํ์๋จ ref.. IT/development 2023. 8. 26. [Git] Git Branching Strategy(feat. ๋ธ๋์น ์ ๋ต) ppt๋ก ์์ฑํ๋ ค๊ณ ํ์ผ๋ ๋๋ฌด ์๊ฐ์ด ์ค๋ ๊ฑธ๋ฆด ๊ฒ ๊ฐ์์ ๊ทธ๋ฆผ์ ์ด๊ฑธ๋ก ํ๊ณ ํ ์คํธ๋ก ๋ณด์ถฉmaster branch ๐์ค์ ์ด์์๋ฒ์ ์ฌ๋ผ๊ฐ๋ ์ต์ข ๋ฆด๋ฆฌ์ฆ ๋ฒ์ ๋ธ๋์นcandidate branch ๐ญQA Server์ ๋ฐฐํฌํด์ ์ค์๋ฒ ๋ฐ์ ์ ๊ฒ์ฆํ๋ ๋ธ๋์นcandidate branch์์ ์ต์ข ๊ฒ์ฆ์ด ๋๋ฉด ๊ทธ ๋ master์ ๋ฐ์master branch์ ์ฌ๋ผ๊ฐ๊ธฐ ๋ฐ๋ก ์ ์์คdev branch ๐๊ฐ์ธ ๋ธ๋์น์์ ๋ก์ปฌ ๊ฒ์ฆ ํ ๊ฐ๋ฐ์๋ฒ์์ ๋๋ฆฌ๋ ์ฉ๋์ ๋ธ๋์น๊ฐ๋ฐ์๋ฒ์์ ๋๋ ค๋ณด๋ ์ฉ๋๋ผ์ ์จ๊ฐ ์ก๋คํ ์์ค๊ฐ ๋ค ์์ ์ ์๋ค.(๋ฒ๊ทธ๊ฐ ์๋ ์์ค ๋ฑ๋ฑ)์ ๋ ์ด branch๋ master๋ candidate branch๋ก ๋ฐ์ํ๋ฉด ์๋๋ค.persnal branch ๐๊ฐ๋ฐ์ ๊ฐ์ ๊ฐ๋ฐํ๋ ์ฉ๋์ .. IT/development 2023. 8. 24. [springBoot] ์์ ํ์ผ ์ฝ๊ธฐ(feat. ajax) ๋ชฉ์ฐจ ํ๋ก์ธ์ค: ํ๋ฉด์์ ์์ ์ ๋ก๋ ์ ์์ ์ ๋ด์ฉ์ ์ฝ์ด์ ํ ์ด๋ธ์ ์ ์ฅ ์์กด์ฑ ์ถ๊ฐ(gradle) //springBoot ver: 2.7.7 //poi ์์กด์ฑ ์ถ๊ฐ implementation 'org.apache.poi:poi:5.1.0' implementation 'org.apache.poi:poi-ooxml:5.1.0' service @Service @Slf4j @RequiredArgsConstructor @Transactional(readOnly = true) public class ExcelService { private final ExcelMapper excelMapper; /** * ์์ ์ ๋ก๋ ํ๋ฉด * @param mv * @return */ @Override public ModelAnd.. IT/development 2023. 8. 23. [Java] ๊ฐ๋ณ์ธ์ ์ฌ์ฉ(feat. String ... str) java์์ parameter๊ฐ์์ ํ์ ์ ๋ค๋ฅด๊ฒ ํด์ ๊ฐ์ ๊ธฐ๋ฅ์ ํ๋ ๋ฉ์๋๋ฅผ ๋์ผํ ๋ฉ์๋๋ช ์ผ๋ก ์ฌ์ฉํ ์ ์๋ค.(์ค๋ฒ๋ก๋ฉ)@Slf4j public class Test { public void print(String str) { log.info("str = [{}]", str); } public void print(int num) { log.info("num = [{}]", num); } }ํ์ง๋ง parameter์ ๊ฐ์๋ฅผ ๊ฐ๋ณ์ ์ผ๋ก ์ฌ์ฉํ๊ณ ์ถ์ ๋?Test test = new Test(); //์ด๋ ๊ฒ ํธ์ถํ๊ณ ์ถ์ ๋.. test.print(1); test.print(1, 2); test.print(1, 2, 3); test.print(1, 2, 3, 4); test.print(1, 2, 3, .. IT/development 2023. 8. 22. ์ด์ 1 ยทยทยท 3 4 5 6 7 8 9 ยทยทยท 22 ๋ค์