๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ถ„๋ฅ˜ ์ „์ฒด๋ณด๊ธฐ199

[JAVA] ๋žŒ๋‹ค์‹๊ณผ Stream API(filter, map, limit, sorted, peek ๋“ฑ) ๊ณต๋ถ€ํ•˜๋‹ค๊ฐ€ ๋žŒ๋‹ค์‹์ด๋ž‘ ์ŠคํŠธ๋ฆผ ๋‚˜์™€์„œ ์ •๋ฆฌํ• ๊ฒธ ์ ์–ด๋ณธ๋‹ค ๋žŒ๋‹ค์‹์ด๋ž€? JAVA 8๋ถ€ํ„ฐ ์ถ”๊ฐ€๋œ ํ‘œํ˜„ ๋ฐฉ์‹ ์ค‘ ํ•˜๋‚˜๋กœ ํ•จ์ˆ˜ํ˜• ํ‘œํ˜„๋ฐฉ์‹์ด๋‹ค. ๋ฉ”์†Œ๋“œ๋ฅผ ํ•˜๋‚˜์˜ ๊ฐ„๊ฒฐํ•œ ์‹์œผ๋กœ ํ‘œํ˜„ํ•œ ๊ฒƒ์ด๋‹ค. ๋ฉ”์†Œ๋“œ๋ฅผ ๋žŒ๋‹ค์‹์œผ๋กœ ํ‘œํ˜„ํ•˜๋ฉด ๋ฉ”์†Œ๋“œ์˜ ์ด๋ฆ„๊ณผ ๋ฐ˜ํ™˜๊ฐ’์ด ์—†์–ด์ง€๋ฏ€๋กœ '์ต๋ช… ํ•จ์ˆ˜'๋ผ๊ณ ๋„ ํ•œ๋‹ค. ๊ธฐ์กด ์ž๋ฐ” ๋ฌธ๋ฒ• new Thread(new Runnable() { @Override public void run() { System.out.println("This is not lambda"); } }) ๋žŒ๋‹ค์‹ ๋ฌธ๋ฒ• new Thread(()->{ System.out.println("This is lambda"); } ์ด๋Ÿฌํ•œ ๋žŒ๋‹ค ํ‘œํ˜„์‹์€ ๋ฉ”์†Œ๋“œ์˜ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ์ „๋‹ฌ๋  ์ˆ˜๋„ ์žˆ์œผ๋ฉฐ, ๋ฉ”์†Œ๋“œ์˜ ๊ฒฐ๊ด๊ฐ’์œผ๋กœ ๋ฐ˜ํ™˜๋  ์ˆ˜๋„ ์žˆ๋‹ค. ๋”ฐ๋ผ์„œ ํ•จ์ˆ˜ํ˜• ํ”„๋กœ๊ทธ๋ž˜.. 2021. 7. 1.
[์ž…๋ฌธ] ์›น ๊ฐœ๋ฐœ ๊ธฐ์ดˆ - ์ •์  ์ปจํ…์ธ , MVC์™€ ํ…œํ”Œ๋ฆฟ ์—”์ง„, API ํฌ๊ฒŒ ์„ธ ์ข…๋ฅ˜๊ฐ€ ์žˆ๋‹ค. 01. ์ •์  ์ปจํ…์ธ  : ํŒŒ์ผ์„ ์›น ๋ธŒ๋ผ์šฐ์ €์— ๊ทธ๋ƒฅ ์ „๋‹ฌํ•ด์ค€๋‹ค. 02 MVC & ํ…œํ”Œ๋ฆฟ ์—”์ง„ : ์„œ๋ฒ„์—์„œ HTML์„ ์กฐ๊ธˆ ๋ฐ”๊ฟ”์„œ ์ „๋‹ฌํ•ด์ค€๋‹ค 03. API : json ๋ฐ์ดํ„ฐ ํฌ๋งท์œผ๋กœ ํด๋ผ์ด์–ธํŠธ์—๊ฒŒ ๋ฐ์ดํ„ฐ ์ „๋‹ฌ / ์„œ๋ฒ„๋ผ๋ฆฌ ํ†ต์‹ ํ•  ๋•Œ๋„ ์‚ฌ์šฉ ์ •์  ์ปจํ…์ธ  - ์Šคํ”„๋ง๋ถ€ํŠธ์—์„œ ์ •์  ์ปจํ…์ธ ๋ฅผ ์ง€์›ํ•œ๋‹ค. https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-boot-features.html#boot-features-spring-mvc-static-content Spring Boot Features Graceful shutdown is supported with all four embedded web servers.. 2021. 6. 29.
[์ž…๋ฌธ] cmd์ฐฝ์—์„œ spring build ํ•˜๊ธฐ 01. cmd์ฐฝ์—์„œ ํ•ด๋‹น ํด๋”๋กœ ์ด๋™ํ•œ๋‹ค. 02. ll(ls -l)์„ ์ด์šฉํ•˜์—ฌ ์•ˆ์— ์žˆ๋Š” ํŒŒ์ผ์„ ํ™•์ธํ•œ๋‹ค. ๋”๋ณด๊ธฐ ๋”๋ณด๊ธฐ ๋”๋ณด๊ธฐ ์œˆ๋„์šฐ์˜ ๊ฒฝ์šฐ ls -l์ด ์•ˆ ๋จนํžˆ๋ฏ€๋กœ(ใ… ใ… ) doskey๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฏธ๋ฆฌ ๋ช…๋ น์–ด๋ฅผ ์„ค์ •ํ•ด์ค€๋‹ค. doskey ls = dir doskey clear = cls ๋“ฑ๋“ฑ.. ์ด๋Ÿฐ ์‹์œผ๋กœ ํŒŒ์ผ์ด ๋‚˜์—ด๋  ํ…๋ฐ, ์ด ์ค‘์—์„œ ์šฐ๋ฆฌ๋Š” gradlew๋ฅผ ์ด์šฉํ•œ๋‹ค. 03. ./gradlew build ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ ๋”๋ณด๊ธฐ ๋”๋ณด๊ธฐ ๋”๋ณด๊ธฐ ์œˆ๋„์šฐ๋Š” . ์—†์ด gradlew build ์—ฌ๊ธฐ์—์„œ ll์„ ์ž…๋ ฅํ•˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ์ฐฝ์ด ๋‚˜์˜ฌ ํ…์— ์ด ์ค‘ libs ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•œ๋‹ค. 04. libs ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•œ ํ›„ ls -arlth ์‹คํ–‰ ์‹คํ–‰ํ•˜๋ฉด 18 ์–ด์ฉŒ๊ตฌ์˜ ํฌ๊ธฐ๋ฅผ ๊ฐ€์ง„ hello-spring-0.0.1-.. 2021. 6. 29.
[์ž…๋ฌธ] spring-boot-devtools ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ถ”๊ฐ€ํ•˜๊ธฐ ์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•  ๊ฒฝ์šฐ, local์—์„œ ์ปดํŒŒ์ผ๋งŒ ํ•˜๋ฉด ์„œ๋ฒ„ ์žฌ์‹œ์ž‘ ์—†์ด view ํŒŒ์ผ ๋ณ€๊ฒฝ์ด ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ํ•ด์„œ ์•Œ์•„๋ณด๊ฒŒ ๋˜์—ˆ๋‹ค. https://docs.spring.io/spring-boot/docs/1.5.16.RELEASE/reference/html/using-boot-devtools.html 20. Developer tools Applications that use spring-boot-devtools will automatically restart whenever files on the classpath change. This can be a useful feature when working in an IDE as it gives a very fast feedback loop for code .. 2021. 6. 28.