IT/development205 [springBoot] Spring AOP simple source ๋ชฉ์ฐจ RestController ๐ package study.springaoptest.web; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.*; import study.springaoptest.model.User; import study.springaoptest.service.TestService; @RestController @Slf4j @RequestMapping("/api/v1/user") @RequiredArgsConstructor public class TestRestController { private final TestSer.. IT/development 2023. 10. 19. [springBoot] springBoot ์คํ ์ dataSource ์ ์ธ springBoot ์คํ ์ DB ์ฐ๊ฒฐ์ ๊ธฐ๋ํ๋๋ฐ DB์ฐ๊ฒฐ์ด ํ์์๋ ๊ธฐ๋ฅ์ ๋ง๋ค ๋๋ ์ด์กฐ์ฐจ๋ ๊ท์ฐฎ๋ค. ๊ทธ๋ด ๋ ์๋์ฒ๋ผ ๋ฉ์ธ ๋ฉ์๋์ @SpringBootApplication์ exclude ์ต์ ์ ์ฃผ๋ฉด ๋๋ค. package study.springaoptest1; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; @SpringBootApplication(exclude = {DataSourceAut.. IT/development 2023. 10. 14. [Rest API]๊ณ์ธต๊ตฌ์กฐ Rest API sample(feat. springBoot) ๋ชฉ์ฐจ Oracle์ HR schema์ ๋ฐ์ดํฐ๋ก ๊ณ์ธต๊ตฌ์กฐ๋ก Rest API๋ฅผ ๋ง๋ค ์ ์๋ค. Rest API ์ฐ์ต ํ๊ธฐ ์ข๋ค. depth entity ๋น๊ณ 1depth region ์ง์ญ 2depth contry ๋๋ผ 3depth location ์์น 4depth department ๋ถ์ 5depth employee ์ฌ์ ์ต์์์ ์ง์ญ(์ ๋ฝ, ์๋ฉ๋ฆฌ์นด, ์์์ ๋ฑ)์ด ์๊ณ ๊ทธ์์ ๋๋ผ๊ฐ ์๊ณ ๊ทธ ์๋ 5depth๊น์ง ๊ตฌ์ฑํ ์ ์๋ค. ์ ๋ฐ์ดํฐ ๊ตฌ์กฐ๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์์ฑ์ ํด ๋ณด๋ฉด ์๋์ฒ๋ผ ์์ฑ ํ ์ ์๋ค.(๋ก์ง์ ๊ฐ์ธ์ ์ทจํฅ) RestController ๐ package study.dev.test.controller; import lombok.RequiredArgsConstructor; import lomb.. IT/development 2023. 10. 10. [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. ์ด์ 1 2 3 4 5 6 7 8 ยทยทยท 21 ๋ค์