front controller ๋ฐฉ์ ๋ก๊ทธ์ธ ๋ฉ์๋ ๊ตฌํํ๋ ์๋ฐ ์ฝ๋ Front Controller ํจํด์ ์ฌ์ฉํ์ฌ ๋ก๊ทธ์ธ ๋ฉ์๋๋ฅผ ๊ตฌํํ๋ Java ์ฝ๋๋ค์๊ณผ ๊ฐ์ ํด๋์ค๋ฅผ ์์ฑํ ๊ฒFrontController: ๋ชจ๋ ์์ฒญ์ ์ฒ๋ฆฌํ๋ ๋ฉ์ธ ํด๋์ค.Controller: ๊ฐ ์์ฒญ์ ์ฒ๋ฆฌํ๋ ์ธํฐํ์ด์ค.LoginController: ๋ก๊ทธ์ธ ์์ฒญ์ ์ฒ๋ฆฌํ๋ ํด๋์ค.Request: ํด๋ผ์ด์ธํธ์ ์์ฒญ์ ๋ํ๋ด๋ ํด๋์ค.Response: ํด๋ผ์ด์ธํธ์ ๋ํ ์๋ต์ ๋ํ๋ด๋ ํด๋์ค.// Request.javaclass Request { private String action; public Request(String action) { this.action = action; } publ..
My Tech Blog (์ปจํธ๋กค๋ฌ)
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; }..