DEV ๐
-
[Spring] ์ ์์ ๋ถํ๋ ์์ํฌ์์ CORS ๋ฌธ์ ํด๊ฒฐํ๊ธฐDEV ๐/JAVA Spring 2021. 8. 11. 12:59
์ ์์ ๋ถํ๋ ์์ํฌ ๊ฐ๋ฐ ์ค ์ธ๋ถ API๋ฅผ ์ฌ์ฉํ๋ค๊ฐ [ Access to XMLHttpRequest at 'A' from origin 'B' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. ] CORS Error ๋๋ถ์ ๊ณจ๋จธ๋ฆฌ๋ฅผ ์์๋ค..ใ ใ ์ธ๋ถ api ๋ฅผ ์ฌ์ฉํ ๋ ค๋ค๋ณด๋ CORS ํ์ค์์ ๋ฒ์ด๋์ ์๊ธฐ๋ ์๋ฌ์ด๋ค ๊ตฌ๊ธ๋ง์ผ๋ก ์ฐพ์๋ณธ ํด๊ฒฐ ๋ฐฉ๋ฒ์ผ๋ก๋ 1 ์๋ฒ๋จ์์ ์ธ๋ถurl ํ์ฉ ์ค์ ํ๋ ๋ฐฉ๋ฒ 2 ๋ฏธ๋ค์จ์ด๋ฅผ ํ์ํ๋ ๋ฐฉ๋ฒ 3 ํ๋ก์ ์๋ฒ๋ฅผ ์ฐํํ๋ ๋ฐฉ๋ฒ 4 ํฌ๋กฌ์ ํ์ฅํ๋ก๊ทธ๋จ์ ํ์ฉํ๋ ๋ฐฉ๋ฒ ๊ฐ๋ฐ ๋ฐ ํ ์คํธ ์์๋ 4๋ฒ ๋ฐฉ๋ฒ ํ์ฅ ํ๋ก๊ทธ๋จ์ ์ฌ์ฉํ๋ ๊ฒ์ด ๊ฐ..
-
[JAVA] ์์ ํ์ผ(.xlsx) ์ฐ๊ธฐ / ์คํ์ผ ์ ์ฉDEV ๐/JAVA 2020. 3. 17. 21:34
โถ previous 1 POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ค์ด๋ก๋ & ํ๋ก์ ํธ์ ์ ์ฉ 2 ์์ ํ์ผ(.xlsx) ์ฝ์ด์ค๊ธฐ & list์ ์ ์ฅ [ ์์ ํ์ผ(.xlsx) ์ฐ๊ธฐ(์์ฑ)/์ ์ฅ/์คํ์ผ ์ ์ฉ ] 1 Font (๊ธ๊ผด) XSSFFont Font = workbook.createFont(); → ํฐํธ ์คํ์ผ ์์ฑ Font.setFontHeightInPoints((short)14); → ๊ธ์ ํฌ๊ธฐ Font.setFontName("๋ง์ ๊ณ ๋"); → ๊ธ๊ผด ์ง์ Font.setBold(true); → ์งํ๊ฒ(true) Style.setFont(Font); → ๋ง๋ค์ด๋์ CellStyle์ ํฐํธ ์ ์ฉ 2 CellStyle CellStyle Style = workbook.createCellStyle(); → ์ ์คํ์ผ ์์ฑ Styl..
-
[JAVA] ์์ ํ์ผ(.xlsx) ์ฝ์ด์ค๊ธฐ_POIํ์ฉDEV ๐/JAVA 2020. 3. 10. 22:27
1 POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ค์ด๋ก๋ & ํ๋ก์ ํธ์ ์ ์ฉ [JAVA] ์๋ฐ ์์ ํ์ผ ์์ _Apache POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ [ ์ํ์น POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ด์ฉํ์ฌ ์์ ํ์ผ ์์ ] 1 Apache POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ค์ด๋ก๋ ์ ์ http://poi.apache.org/download.html Apache POI - Download Release Artifacts Apache POI - Download Release Art.. alliwannado-start.tistory.com [ ์์ ํ์ผ(. xlsx) ์ฝ์ด์ค๊ธฐ ] ์์๋ก ์ฝ์ด์ฌ ์์ ํ์ผ์ ๋ด์ฉ (ExcelExFile.xlsx) ์ ๊ตญ ๋ฉ๊ฐ๋ฐ์ค ์ง์ ์ ์ด๋ฆ์ผ๋ก ํ๊ณ ๋น์จ(%)๋ ์ ๋ ฌ์ ์ํด์! * ํ์ผ์ ๊ฒฝ๋ก๋ ์๋๊ฒฝ๋ก๋ก ํ๋ ๊ฒ์ด ์ข๋ค ์์ ํ๊ฒฝ์ด ๋ณํ๋๋ผ๊ณ ๊ฐ..
-
[JAVA] ํ๋ ฌ ์ฐ์ฐ_๋ง์ ๋บ์ ๊ณฑ์ / ๋๋คํจ์ ์ฌ์ฉํ๊ธฐDEV ๐/JAVA 2020. 3. 10. 18:18
1 ํ๊ณผ ์ด ํฌ๊ธฐ ์ง์ ๊ณผ ํ๋ ฌ ์์ฑ int row, col;//rowํ, col์ด ํฌ๊ธฐ Scanner scan = new Scanner(System.in);//์ค์บ๋ System.out.print("ํ(row) : "); row = Integer.parseInt(scan.nextLine()); System.out.print("์ด(col) : "); col = Integer.parseInt(scan.nextLine()); int[][] matrix = new int[row][col];//์ ๋ ฅ๋ฐ์ ํฌ๊ธฐ๋ก ํ๋ ฌ1 ์์ฑ 2 ๋๋ค๊ฐ ์ง์ 1~10 ์ฌ์ด์ ์ซ์๋ฅผ ๋๋ค ์ง์ Math.random() ํจ์ for(int i=0; i
-
[JAVA] ์๋ฐ ์์ ํ์ผ ์์ _Apache POI ๋ผ์ด๋ธ๋ฌ๋ฆฌDEV ๐/JAVA 2020. 3. 10. 18:03
[ ์ํ์น POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ด์ฉํ์ฌ ์์ ํ์ผ ์์ ] 1 Apache POI ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ค์ด๋ก๋ ์ ์ http://poi.apache.org/download.html Apache POI - Download Release Artifacts Apache POI - Download Release Artifacts Available Downloads This page provides instructions on how to download and verify the Apac poi.apache.org 2 poi-bin-4.1.2-20200217.zip ๋ค์ด๋ก๋ ๊ฐ์ฅ ์ต์ ๋ฒ์ ์ธ 4.1.2๋ฒ์ ์ ๋ค์ด๋ก๋ํด์ ์ฌ์ฉํ์๋ค (์๋์ฐ ํ๊ฒฝ์์๋ zip, ๋ฆฌ๋ ์ค ๋ฑ์ ํ๊ฒฝ์์๋ tar.gz ๋ค์ด๋ก๋) 3 ์์ถํด์ ํ ๋ผ..
-
[Vue.js] ๊ฐ๋ฐํ๊ฒฝ ์ค์ ํ๊ธฐ / node.js ์ค์น / ๋ทฐ ๊ฐ๋ฐ์ ๋๊ตฌ ์ค์นDEV ๐/Vue.js 2019. 3. 15. 17:36
atom์๋ํฐ ์ค์น - [Vue.js] ๊ฐ๋ฐํ๊ฒฝ ์ค์ ํ๊ธฐ / ATOM ์๋ํฐ ์ค์นํ๊ธฐ ์์ ํด๋ณด์๋ ์๋ํฐ ์ค์น, ์ค์ ์ด ๋ชจ๋ ๋๋ฌ๋ค๋ฉด์๋ฒ์ฌ์ด๋ ์๋ฐ์คํฌ๋ฆฝํธ ํ๊ฒฝ์ค์ ์ ํด๋ณด์! 1 nodejs.org ์ ์ 2 LTS ๋ค์ด๋ก๋Current ๋ฒ์ ๋ณด๋ค ์์ ์ ์ธ LTS(Long Term Support) ๋ฒ์ ์ ๋ค์ด๋ก๋ ํ๋๊ฒ์ดํฅํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํธํ์ฑ์ ๊ณ ๋ คํ์ ๋ ๋ ๋์์ด ๋๋ค. 3 ๋ค์ด๋ก๋ ํ์ผ์ ์คํํ์ฌ ์ค์น ์งํ๋ผ์ด์ผ์ค or ์ฌ์ฉ๊ถ ๊ณ์ฝ ์กฐํญ ๋์ ํ ์ค์น๋ฅผ ์งํํ๋ค.NPM(Node Package Manager) ์ค์น ์๋ฃ 4 cmd ์คํ ํ node-v ์ ๋ ฅ์ ์์ ์ผ๋ก ์ค์น ์๋ฃ๋ ๊ฒฝ์ฐ node.js์ ๋ฒ์ ์ด ํ์๋๋ค. ํฌ๋กฌ์ ๋ทฐ ๊ฐ๋ฐ์ ๋๊ตฌ ์ค์น 1 ๊ตฌ๊ธ์์ vue.js devtools ๊ฒ์ 2 ๊ฐ์ฅ ์..
-
[Vue.js] ๊ฐ๋ฐํ๊ฒฝ ์ค์ ํ๊ธฐ / ATOM ์๋ํฐ ์ค์นํ๊ธฐDEV ๐/Vue.js 2019. 3. 12. 01:30
(https://kr.vuejs.org/) Vue ์ ์ํ๊ธฐ ๊ฐ๋ฐํ๊ฒฝ ์ค์ ์ ์ ๊ฐ๋จํ๊ฒ ์ ์๋ฅผ ์ง๊ณ ๋์ด๊ฐ์๋ฉด Vue.js ๋ ?WEB ๊ฐ๋ฐ์์ ํ๋ฐํธ์๋ ํ๋ ์์ํฌ ์ค ํ๋์ด๋ค.(ํ๋ ์์ํฌ : ๊ฐ๋ฐ์๋ค์ ๊ฐ๋ฐ ์์ฐ์ฑ์ ๋์ด๊ธฐ ์ํด ์ผ์ ํ ํ๊ณผ ๊ท์น์ ๋ฐ๋ผ ๊ฐ๋ฐํ๋๋ก ๋ฏธ๋ฆฌ ๊ตฌ์กฐ๋ฅผ ์ ์ํด ๋์ ๋๊ตฌ) ๋ํ์ ์ธ ํ๋ฐํธ์๋ ํ๋ ์์ํฌ๋ก๋ React, Angular, Vue ๊ฐ ์๋๋ฐ ๊ฐ๊ฐ์ ์ฅ๋จ์ ์ด ์๊ฒ ์ง๋ง๋ด ๊ฒฝ์ฐ์๋ HTML, CSS, Javascript ๊ธฐ์ด๋ง ์๋ ๋น์ ๊ณต์๋ ์ฝ๊ฒ ๋ฐฐ์ธ ์ ์๋ค๋ ๋ง์ ํนํด์ Vue๋ฅผ ์ ํํ์๋ค! Vue.js์ ์ฅ์ 1 ๋ฐฐ์ฐ๊ธฐ ์ฝ๋ค์์ ๋งํ๋ฏ์ด HTML, CSS, Javascript์ ๊ธฐ์ด๋ง ์๋ ์ ๋ฌธ์์ ๊ฒฝ์ฐ์๋ ํ๋ฃจ์์ ๋ฐฐ์ฐ๋ ๊ฒ ๊ฐ๋ฅํ๋ค.๋ํ, Template ํ์์ ..
-
[Spring] Maven & GradleDEV ๐/JAVA Spring 2019. 2. 4. 21:39
์คํ๋ง ํ๋ ์์ํฌ(Spring Framework)์ ๋ํด ๊ณต๋ถ๋ฅผ ์์ํ๋ฉด์ ์ฒซ ์ฅ๋ถํฐ ๋๊ด์ ๋ถ๋ํ๋ค Maven...? Gradle...? ๋ฌด์...? gradle์ ์๋๋ก์ด๋ํ๋ฉด์ ์ธ๋ป์ธ๋ป ๋ณด๊ธดํ์ง๋ง ์ ์๋ฅผ ์๋ ค๊ณ ํ์ง ์์๊ธฐ ๋๋ฌธ์ ๊ทธ๋ ๊ตฌ๋ ํ๊ณ ๋์ด๊ฐ๋ค ํคํท^^ ์ฌ๊ธฐ์ ๋ฉ์ด๋ธ๊ณผ ๊ทธ๋ ์ด๋ค์ '๋น๋ ํด' ์ธ๋ฏํ๋ ์ ๋ฆฌ๊ฐ ํ์ํ๋ค...! * ๋น๋(build)๋? ์๋ฐ๋ก ํ๋ก๊ทธ๋จ์ ์์ฑํ๋ค๊ณ ํ๋ฉด ์๋ฐ์ฝ๋๊ฐ ์์ ๊ฒ์ด๊ณ ๊ทธ์์์ ์ฌ์ฉ๋๊ณ ์์กดํ๋ ๋ค๋ฅธ ์ธ๋ถ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์์ ๊ฒ์ด๋ค. ์ด๋ฅผ ์ปดํ์ผํ๊ณ ํจํค์ง ํ๋ ๊ณผ์ ์ ๋น๋๋ผ๊ณ ํ๋ค. ๋ํ์ ์ธ ๋น๋ ํด์๋ Ant, Apache Ivy, Maven๋ฑ์ด ์๋ค. 1 ์ํ์น ๋ฉ์ด๋ธ (Apache Maven) ํ๋ก์ ํธ์ ์ ์ฒด์ ์ธ ๋ผ์ดํ ์ฌ์ดํด์ ๊ด๋ฆฌํ๋ ๋๊ตฌ ํ๋ก์ ํธ..