์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- ๋จ์ถํค
- ์ปฌ๋ ์ ํ๋ ์์ํฌ
- servlet
- API
- python
- ๋งฅ
- ๋ฐ๋ณต๋ฌธ
- crud
- Java
- ibatis
- ์ดํด๋ฆฝ์ค
- Mac
- Oracle
- ์ํ์ฝ๋ฉ
- Android
- nodejs
- ์๋ฐ๋ฌธ์
- ๋๋์ธ์ฌ๊ฐ๋ฐ์
- html
- spring
- pyqt
- FastAPI
- JDBC
- ddit
- Homebrew
- jsp
- Error
- ์๋ฐ
- ๊ฐ์ฒด์งํฅ
- ๋ฐฐ์ด
- Today
- Total
๋ชฉ๋กcrud (2)
romworld

CRUD Create Real Update Delete Insert Select Update Delete ์คํ๋ง ์น(view) ์ค์ ํ์ผ scan => ์คํ๋ง์ด ํด๋์ค๋ฅผ ๊ฐ์ฒด๋ก ๋ง๋ค์ด์ค๋ค. (์ธ์คํด์คํ) create package kr.or.ddit; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; /*Controller ์ด๋ ธํ ์ด์ ์คํ๋ง ํ๋ ์์ํฌ์..

MVC (Model, View, Controller) Model ==> ๋ฐ์ดํฐ ๋ฐ ๋ฐ์ดํฐ๋ฅผ ๋ง๋ค๊ธฐ ์ํ ์์ View ==> ์ฌ์ฉ์์๊ฒ ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ฃผ๋ ์์ Controller ==> ์ฌ์ฉ์์ ์์ฒญ์ ๋ฐ์์ Model์ ์์ฑํ๊ณ ์์ฑ๋ Model์ View์ ์ ๋ฌํ๋ ์์ ์ ์งํํ๋ค. ----------------------------------------------------------------------------------- - MVC ํจํด์ ๋น์ง๋์ค ๋ก์ง์ ์ฒ๋ฆฌํ๋ ํด๋์ค๋ค... 1. VO, DTO ==> ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๋ ์ญํ ๋ง ํ๋ ํด๋์ค (VO => Value Object, DTO => Data Transfer Object) 2. DAO ==> SQL๋ฌธ์ DB์๋ฒ์ ๋ณด๋ด์ ๊ฒฐ๊ณผ๋ฅผ ์ป์ด์ค๋..