DEV ๐/JAVA
-
[Javascript/HTML] ํ์ผ ๋ค์ด๋ก๋ ์ ํ์ผ์ด๋ฆ ๋ฐ๊พธ๊ธฐDEV ๐/JAVA 2023. 3. 17. 13:55
1๏ธโฃ a ํ๊ทธ ์ฌ์ฉ - download ์ต์ ์ฌ์ฉํ๊ธฐ 2๏ธโฃ ์ฌ์ฉ - javascript์์ aํ๊ทธ ์์ฑํด์ download ์ต์ ์ฌ์ฉํ๊ธฐ function file_download() { const evt = document.createElement('a'); evt.href = '/file/์๋ ํ์ผ์ด๋ฆ.hwp'; evt.download = '๋ค์ด๋ก๋๋๋ํ์ผ์ด๋ฆ.hwp'; evt.click(); } * ํ์ผ๋ช ์ ํน์๋ฌธ์ ๋ฑ.. ์์ด์ ํ์ผ ๋ค์ด๋ก๋ ์๋ ๋ ํ์ผ๋ช ์ ์ ์งํ๊ณ , ๋ค์ด๋ก๋ ๊ฒฝ๋ก์ ์๋ ํ์ผ๋ช ์ ๋ณ๊ฒฝํด์ ์ฐ๋ฉด ํธํจ!
-
[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 ์์ถํด์ ํ ๋ผ..