Banner

My Tech Blog (์ปจํŠธ๋กค๋Ÿฌ)

front controller ๋ฐฉ์‹ ๋กœ๊ทธ์ธ ๋ฉ”์„œ๋“œ ๊ตฌํ˜„ํ•˜๋Š” ์ž๋ฐ” ์ฝ”๋“œ  Front Controller ํŒจํ„ด์„ ์‚ฌ์šฉํ•˜์—ฌ ๋กœ๊ทธ์ธ ๋ฉ”์„œ๋“œ๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” Java ์ฝ”๋“œ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํด๋ž˜์Šค๋ฅผ ์ž‘์„ฑํ•  ๊ฒƒFrontController: ๋ชจ๋“  ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ๋ฉ”์ธ ํด๋ž˜์Šค.Controller: ๊ฐ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ์ธํ„ฐํŽ˜์ด์Šค.LoginController: ๋กœ๊ทธ์ธ ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ํด๋ž˜์Šค.Request: ํด๋ผ์ด์–ธํŠธ์˜ ์š”์ฒญ์„ ๋‚˜ํƒ€๋‚ด๋Š” ํด๋ž˜์Šค.Response: ํด๋ผ์ด์–ธํŠธ์— ๋Œ€ํ•œ ์‘๋‹ต์„ ๋‚˜ํƒ€๋‚ด๋Š” ํด๋ž˜์Šค.// Request.javaclass Request { private String action; public Request(String action) { this.action = action; } publ..
1. Model (๋ชจ๋ธ) package ex03_๋ฎค์งํ”Œ๋ ˆ์ด์–ด; public class Music { // Model : ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ๊ฐ์ฒด private String title; // ๋…ธ๋ž˜์ œ๋ชฉ private String singer; // ๊ฐ€์ˆ˜ private String path; // ๋…ธ๋ž˜ ์ €์žฅ ๊ฒฝ๋กœ public Music(String title, String singer, String path) { this.title = title; this.singer = singer; this.path = path; } // (2) getter ๋ฉ”์†Œ๋“œ public String getTitle() { return title; } public String getSinger() { return singer; }..
์ธ์ ˆ๋ฏธ์˜€๋˜๊ฒƒ
'์ปจํŠธ๋กค๋Ÿฌ' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก
์ƒ๋‹จ์œผ๋กœ