์ „์ฒด ๊ธ€ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ
350 ๊ฐœ์˜ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

Spring Boot | static home directory setting | JSP ํŒŒ์ผ ์š”์ฒญ ์„ค์ • | ๊ณต์ง€์‚ฌํ•ญ ๋ชฉ๋ก MVC ๊ตฌํ˜„ | Mapping / VIew ์œ„์น˜ ์„ค์ • | View Resolver ์„ค์ • | devtools ์„ค์ •

www.newlecture.com/customer/notice/16 html.zip ํŒŒ์ผ (์Šคํ”„๋ง ์›น MVC ๊ฐ•์˜์šฉ) ์•ˆ๋…•ํ•˜์„ธ์š”. ๋‰ด๋ ‰์ฒ˜์ž…๋‹ˆ๋‹ค. ์ž„์‹œ๋กœ ์ด๊ณณ์— ์˜ฌ๋ฆฝ๋‹ˆ๋‹ค. html.zip ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ ์œ„์˜ ๋งํฌ๋ฅผ ํด๋ฆญํ•˜์„ธ์š”~ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. www.newlecture.com ํŒŒ์ผ ์ค€๋น„ํ•˜๊ธฐ ์Šคํ”„๋ง ๋ถ€ํŠธ์—์„œ๋Š” home directory๊ฐ€ 2๊ฐœ๊ฐ€ ๋œ๋‹ค. ์ •์ ์ธ home directory์™€ ๋™์ ์ธ home directory JSPํŒŒ์ผ ์š”์ฒญํ•˜๊ธฐ ํŒŒ์ผ์ด ๋‹ค์šด๋กœ๋“œ๋˜๋Š” ํ˜„์ƒ ์ˆ˜์ •ํ•˜๊ธฐ Maven ์ถ”๊ฐ€ ์„œ๋ฒ„ ์‹คํ–‰ ๊ณต์ง€์‚ฌํ•ญ ๋ชฉ๋ก MVC ๊ตฌํ˜„ ์ปจํŠธ๋กค๋Ÿฌ ์ƒ์„ฑ ๊ฐ€์ด๋“œ NoticeCotroller๋ผ๋Š” ์ด๋ฆ„์œผ๋กœ ์ปจํŠธ๋กค๋Ÿฌ ๋งŒ๋“ค๊ธฐ ํด๋ž˜์Šค ์œ„์ชฝ์— ์žˆ๋Š” ๊ฒƒ์€ ํŒจํ‚ค ์ง€๋ช…์œผ๋กœ ๋งŒ๋“ ๋‹ค. ์ง๊ด€์ ์œผ๋กœ ๊ด€๋ฆฌ ์š”์ฒญ ๊ฒฝ๋กœ ๋ฐ˜ํ™˜ ๊ฒฝ๋กœ์™€ ๊ฐ™์€ ๊ฒฝ์šฐ ์ƒ๋žต ๊ฐ€๋Šฅ ..

Spring JDBC | Service์™€ Dao ๋ ˆ์ด์–ด์˜ ๊ตฌ๋ถ„๋ฐฉ์‹ | Service์™€ DAO์˜ ์—ญํ• ๊ณผ ๊ด€๊ณ„ โ˜†

์„œ๋น„์Šค์™€ ๋ฐ์ดํ„ฐ ๋ ˆ์ด์–ด์˜ ๊ตฌ๋ถ„๋ฐฉ์‹ ์ปจํŠธ๋กค๋Ÿฌ URL Mapping๊ณผ ์‚ฌ์šฉ์ž ์ถœ๋ ฅ Service์™€ DAO์˜ ์—ญํ•  ์ž…๋ ฅ์„ ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ ๋ฐ›๊ณ  ์‚ฌ์šฉ์ž์—๊ฒŒ ๋Œ๋ ค์ฃผ๊ธฐ ์œ„ํ•ด์„œ ๋ฐ์ดํ„ฐ๊ฐ€ ํ•„์š”ํ•œ๋ฐ ๋ฐ์ดํ„ฐ ์ œ๊ณต์„ ํ•˜๋Š” ๊ฒƒ์ด Service Service๋Š” Dao๋ฅผ ์“ฐ๊ณ  ์žˆ๋‹ค. SQL์˜ ๋‚ด์šฉ๋“ค์„ Service๊ฐ€ ์‚ฌ์šฉ SQL๋ช…๋ น์„ ํ†ตํ•ด ์“ฐ๋Š” ๊ฒƒ์ด ์•„๋‹Œ Dao๊ฐ€ ์ œ๊ณตํ•˜๋Š” ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด์„œ ์“ฐ๊ฒ ๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. Dao๋Š” SQL์ด ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ๊ธฐ๋Šฅ์„ ์ž๋ฐ” ๊ฐ์ฒด์˜ ํ˜•ํƒœ๋กœ ์ œ๊ณตํ•˜๋Š” ๊ฒƒ Dao๋ฅผ ์‚ฌ์šฉํ–ˆ์„ ๊ฒฝ์šฐ ์žฅ์ ์œผ๋กœ Service ๊ตฌํ˜„ํ•˜๋Š” ์‚ฌ๋žŒ์ด SQL์„ ๋ชฐ๋ผ๋„ ๋˜๋ฉฐ ์–ด๋– ํ•œ ์ €์žฅ์†Œ๋ฅผ ์“ฐ๋˜์ง€ ์ƒ๊ด€ํ•˜์ง€ ์•Š์•„๋„ ๋œ๋‹ค. ๋ฐ์ดํ„ฐ ์†Œ์Šค์— ๋Œ€ํ•œ ๊ฒƒ์„ ์ˆจ๊ธธ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์ž๋ฐ”๋งŒ ์•Œ๋ฉด ์—…๋ฌด๋ฅผ ๋‹ค๋ฃฐ ์ˆ˜ ์žˆ๋‹ค. -> ํ˜‘์—…๋Šฅ๋ ฅ ํ–ฅ์ƒ Controller -> ui์ „๋ฌธ๊ฐ€ ..

Spring MVC | ๊ณต์ง€์‚ฌํ•ญ / ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€ | Spring POST Mapping / (GET)Redirection

๊ณต์ง€์‚ฌํ•ญ ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€ ์ค€๋น„ ๊ด€๋ฆฌ์ž๋ฅผ ์œ„ํ•œ list๋‚˜ leg ํŽ˜์ด์ง€ ๋งŒ๋“ค๊ธฐ www.newlecture.com/customer/notice/1026 ์Šคํ”„๋ง MVC ๊ณต์ง€์‚ฌํ•ญ ๊ด€๋ฆฌ์ž view ํŽ˜์ด์ง€ ๊ณต์ง€์‚ฌํ•ญ ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€๋ฅผ ์œ„ํ•œ jsp ํŒŒ์ผ์ž…๋‹ˆ๋‹ค. ๋‹ค์šด๋กœ๋“œ www.newlecture.com Tiles ์„ค์ •ํ•ด์ฃผ๊ธฐ ๋ฆฌํ„ด ๊ฒฝ๋กœ ๋ฐ”๊ฟ”์ฃผ๊ธฐ NoticeController.java ๊ณต์ง€์‚ฌํ•ญ๊ณผ ํƒ€ ๊ธฐ๋Šฅ๋“ค tiles ์ฒ˜๋ฆฌํ•˜๋Š” ์„ค์ •ํ•˜๊ธฐ tiles.xml ์ด๋ฒคํŠธ ๊ฐ™์€ ๊ธฐ๋Šฅ ์—ฌ๋Ÿฌ ๊ฐœ ๊นŒ์ง€ ๊ฐ™์ด ์ฒ˜๋ฆฌํ•˜๋Š” ์„ค์ • ์ถ”๊ฐ€ -> ํ•œ ๋ฒˆ์— ํŒจํ„ด์œผ๋กœ ์„ค์ • ๊ฐ€๋Šฅ ํŒจํ„ด์„ ์ด์šฉํ•œ ํŒŒ์ผ ์„ค์ • tiles.xml ์„œ๋ฒ„ ์‹คํ–‰ํ•ด๋ณด๊ธฐ POST Mapping๊ณผ Redirection reg ์š”์ฒญ์„ GET ์š”์ฒญ๊ณผ POST ์š”์ฒญ์œผ๋กœ ๊ตฌ๋ถ„ํ•  ์ˆ˜ ์žˆ์–ด์•ผ ํ•œ๋‹ค. reg๋ฅผ ..

Apple watch | ์• ํ”Œ์›Œ์น˜ ์‹ฌ๋ฐ•๋ณ€์ด(HRV) | ์ฝ”๋กœ๋‚˜19 ์กฐ๊ธฐ๋ฐœ๊ฒฌ | ์‹ฌ๋ฐ•๋ณ€์ด ์ •์ƒ๋ฒ”์œ„ | ์‹ฌ๋ฐ•๋ณ€์ด ์ •์ƒ์ˆ˜์น˜ | ์‹ฌ๋ฐ•๋ณ€์ด ํ‰๊ท 

์• ํ”Œ์›Œ์น˜ ์‹ฌ๋ฐ•๋ณ€์ด(HRV) ๊ธฐ๋Šฅ์ด ๋งˆ์šดํŠธ์‚ฌ์ด๋‚˜์ด ์˜๋Œ€ ์—ฐ๊ตฌํŒ€์ด ์›จ์ด๋Ÿฌ๋ธ” ๋””๋ฐ”์ด์Šค๋ฅผ ์ด์šฉํ•ด ์ฝ”๋กœ๋‚˜ 19๋ฅผ ์กฐ๊ธฐ์— ๋ฐœ๊ฒฌํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์—ฐ๊ตฌ ๊ฒฐ๊ณผ๋ฅผ ๋ฐœํ‘œํ–ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•œ ๋ฌด์ฆ์ƒ ๊ฐ์—ผ์ž๋„ ์ฐพ์•„๋‚ผ์ˆ˜ ์žˆ๋‹ค๋Š” ์—ฐ๊ตฌ ๊ฒฐ๊ณผ๊ฐ€ ์žˆ์–ด ์ฃผ๋ชฉ์„ ๋ฐ›๊ณ  ์žˆ๋‹ค. ์‹ฌ๋ฐ•๋ณ€์ด ์ •์ƒ์ˆ˜์น˜ 40์ด์ƒ ๊ฑด๊ฐ•ํ•จ 30์ดํ•˜ ์ŠคํŠธ๋ ˆ์Šค๊ฐ€ ๋†’์Œ 10์ดํ•˜ ์˜์‚ฌ ์ƒ๋‹ด์ด ํ•„์š”ํ•œ ์ˆ˜์น˜ ์ธก์ •๊ฐ’์€ ์ฐธ๊ณ ๋งŒ ํ•˜๋˜ ๋งน์‹ ํ•ด์„œ๋Š” ์•ˆ ๋œ๋‹ค. ๋‚˜์ด์— ๋”ฐ๋ผ ์ธก์ •๊ฐ’์ด ๋‹ค๋ฅด๊ธฐ ๋•Œ๋ฌธ์— ๋งŒ 19์„ธ ์ด์ƒ ์„ฑ์ธ์— ์ ์šฉ๋˜๋ฉฐ ์ฐธ๊ณ ๋งŒ ํ•˜์ž https://coupa.ng/bTlT35Apple 2020๋…„ ์• ํ”Œ์›Œ์น˜ SECOUPANGwww.coupang.comhttps://coupa.ng/bTlUbAApple 2020๋…„ ์• ํ”Œ์›Œ์น˜ 6COUPANGwww.coupang.comhttps://coupa.ng/bTl..

Spring MVC | ๋ฌธ์„œ ์ถœ๋ ฅ ๋ฐฉ๋ฒ• | Spring @ResponseBody | RestController์™€ ํ•œ๊ธ€์ถœ๋ ฅ | Spring์—์„œ JSON ์ถœ๋ ฅ

๋ฌธ์„œ ์ถœ๋ ฅ ๋ฐฉ๋ฒ• 4๊ฐ€์ง€ ์„œ๋ธ”๋ฆฟ ๊ฐ์ฒด๋ฅผ ์–ป์–ด์„œ ๋ฌธ์ž์—ด ์ถœ๋ ฅํ•˜๊ธฐ @ResponsenBody ์„ค์ •์„ ํ†ตํ•œ ๋ฌธ์ž์—ด ์ถœ๋ ฅํ•˜๊ธฐ ResourceViewResolver๋ฅผ ์ด์šฉํ•œ ๋ฌธ์„œ ์ถœ๋ ฅํ•˜๊ธฐ TilesViewResolver๋ฅผ ์ด์šฉํ•œ ๋ฌธ์„œ ์ถœ๋ ฅํ•˜๊ธฐ httpservletresponse๋ฅผ ํ†ตํ•ด ์ถœ๋ ฅํ•˜๊ธฐ response, request๋ฅผ ์„ ์–ธ๋งŒ ํ•˜๋ฉด ํ”„๋ŸฐํŠธ ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ๋„˜๊ฒจ์ฃผ์–ด์„œ ์ž…๋ ฅ๊ณผ ์ถœ๋ ฅ์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ViewResolver ์—†์ด ํŽ˜์ด์ง€๋ฅผ ์ค€๋น„ํ•˜์ง€ ์•Š๊ณ  ์ง์ ‘ ์ถœ๋ ฅ ์Šคํ”„๋ง์€ ๋” ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์„ ์ œ๊ณตํ•˜๊ณ  ์žˆ๋‹ค. ViewResolver ์—†์ด ๋ฐ”๋กœ ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ณด๋‚ด๋ผ๋Š” Annotation์‚ฌ์šฉ @ResponseBody HomeController.java package com.newlecture.web.controller; import j..

Spring MVC | Spring ์„ค์ • ํŒŒ์ผ ๋ถ„๋ฆฌ *.servlet.xml

Spring ์„ค์ • ํŒŒ์ผ ๋ถ„๋ฆฌ - dispatcher-servlet.xml ํ•˜๋‚˜๋กœ ๋œ ํŒŒ์ผ์„ ์—ฌ๋Ÿฌ๊ฐœ์˜ xml๋กœ ๋‚˜๋ˆ„๊ธฐ ํ”„๋กœ์ ํŠธ๋ฅผ ์—ฌ๋Ÿฌ์‚ฌ๋žŒ์ด ๋งŒ๋“ค๊ฒฝ์šฐ ๋™๊ธฐํ™”ํ•  ๊ฒฝ์šฐ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒจ ๊ฐ์ž ๋งก์€ ์—ญํ• ์„ ๋‚˜๋ˆ ์„œ ์ž‘์—…ํ•˜๊ธฐ ์œ„ํ•ด์„œ ๋‚˜๋ˆˆ๋‹ค. ํ˜ผ์ž ๋งŒ๋“ค ๊ฒฝ์šฐ์—๋„ ๋‚˜๋ˆ ์„œ ์„ค์ •์„ ํ•ด์ฃผ๋Š”๊ฒŒ ์ข‹๋‹ค. servlet-context.xml service-context.xml ์„ค์ • ์ ์šฉ์‹œํ‚ค๊ธฐ web.xml init-param ์‚ฌ์šฉ listener class ์‚ฌ์šฉ - tomcat์ด ์‹ค์ž‘๋˜๊ฑฐ๋‚˜ ๋๋‚ ๋•Œ ์„ธ์…˜์ด ์‹œ์ž‘๋˜๊ฑฐ๋‚˜ ๋๋‚ ๋•Œ ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด ์‚ฌ์šฉ - tomcat์ด ์‹œ์ž‘๋ ๋•Œ servlet์„ laodํ•˜๊ณ  ์‹ถ์„ ๊ฒฝ์šฐ ์ˆซ์ž๋Š” ์šฐ์„ ์ˆœ์œ„๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. - ๋น„๋™๊ธฐ์ ์œผ๋กœ load๋˜๋Š” ๊ฒƒ์„ ์›ํ•  ๊ฒฝ์šฐ web.xml org.springframework.we..