Spring REST(3)
-
Spring @RestController ๋ฅผ ์ด์ฉํ ๊ฐ๋จํ ๊ฒ์ํ, ํ์ด์ง
1. REST(REpresentational State Transfer) : ํน์ URI๋ฅผ ํตํด ์ฌ์ฉ์๊ฐ ์ํ๋ ์ ๋ณด๋ฅผ ์ ๊ณต๋ฐ๋ ํ์์ด๋ค. ์ด๋ ๊ฒ REST ๋ฐฉ์์ผ๋ก ์๋น์ค์ ๊ณต์ด ๊ฐ๋ฅํ ๊ฒ์ RESTful ํ๋ค๋ผ๊ณ ํ๋ค. 2. @RestController https://hyejin.tistory.com/275 Spring RESTful ์ฌ์ฉ์ ๊ด๋ฆฌ ๊ฒ์ํ https://hyejin.tistory.com/272 Spring RESTful ์ฌ์ฉ์ ๊ด๋ฆฌ ํ๋ก์ ํธ (@RequestBody, @ResponseBody, GET, POST, PUT, DELETE, Postman ์ค์น ๋ฐ ํ ์คํธ https://hyejin.tistory.com/265 Spring MVC, Mybatis [2].. hyejin.tistor..
2021.12.06 -
Spring RESTful ์ฌ์ฉ์ ๊ด๋ฆฌ ํ๋ก์ ํธ (@RequestBody, @ResponseBody, GET, POST, PUT, DELETE, Postman ์ค์น ๋ฐ ํ ์คํธ )
https://hyejin.tistory.com/265 Spring MVC, Mybatis [2] ๊ฐ๋จํ ์ฌ์ฉ์ ๊ฒ์ํ ๋ง๋ค๊ธฐ ๊ทธ๋์ Spring ๊ณต๋ถ๋ฅผ ํ๋ฉด์ ํด์๋ ์ฌ์ฉ์ ๊ด๋ฆฌ ํ๋ก์ ํธ๋ฅผ ์ด์ ๊ฐ๋จํ์ง๋ง ํ๋ฉด ๊ตฌํ๊น์ง ํด์ ๋ง๋ค์ด ๋ณผ ์์ ์ด๋ค. Spring MVC Model2 ๋ฅผ ํ์ฉํด์ ํ ์์ ์ด๋ค. 1. Users ํ ์ด๋ธ Users ํ ์ด๋ธ์ userid, hyejin.tistory.com ์ด ๋ ๋ง๋ค์๋ ๊ฐ๋จํ ์ฌ์ฉ์ ๊ด๋ฆฌ ํ๋ก์ ํธ์ ๋ํด์ Spring RESTful ๊ธฐ๋ฐ์ผ๋ก ๋ง๋ค์ด๋ณผ ์์ ์ด๋ค. https://hyejin.tistory.com/271 Spring REST, RESTful API, XML, JSON , Jackson ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น 1. Open API(Application Prog..
2021.11.29 -
Spring REST, RESTful API, XML, JSON , Jackson ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น
1. Open API(Application Programming Interface) : Open API๋ ๊ฐ๋ฐฉํ api๋ก ํ๋ก๊ทธ๋๋ฐ์์ ์ฌ์ฉํ ์ ์๋ ๊ฐ๋ฐฉ๋์ด ์๋ ์ํ์ ์ธํฐํ์ด์ค๋ฅผ ์๋ฏธํ๋ค. ๋๋ถ๋ถ Open api๋ REST ๋ฐฉ์์ผ๋ก ์ง์ํ๋ค. 2. REST(REpresentational Safe Transfer) : HTTP URI + HTTP Method ๋ก HTTP URI๋ฅผ ํตํด ์ ์ดํ ์์ (Resource)์ ๋ช ์ํ๊ณ , HTTP Method( GET, POST, PUT, DELETE) ๋ฅผ ํตํด ํด๋น ์์(ReSource)๋ฅผ ์ ์ดํ๋ ๋ช ๋ น์ ๋ด๋ฆฌ๋ ๋ฐฉ์์ ์ํคํ ์ฒ์ด๋ค. POST -> Create(Insert) GET -> Read(Select) PUT -> Update or Create DE..
2021.11.29