일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Greedy
- springdatajpa
- 김영한
- SpringBoot
- Proxy
- 스프링 핵심 원리
- java
- JPQL
- 스프링 핵심 기능
- Spring Boot
- AOP
- Servlet
- spring
- jpa
- 그리디
- 스프링
- Android
- 인프런
- db
- pointcut
- 백준
- kotlin
- JDBC
- QueryDSL
- http
- 자바
- 알고리즘
- Thymeleaf
- Exception
- transaction
- Today
- Total
목록인프런/[인프런] Kotlin으로 개발하는 Spring Boot Web MVC (12)
개발자되기 프로젝트
1. @PutMapping @RestController @RequestMapping("/api") class PutApiController { @PutMapping("/put-mapping") fun putMapping(): String{ return "put-mapping" } @RequestMapping(method = [RequestMethod.PUT], path = ["/request-mapping"]) fun requestMapping(): String { return "request-mapping -put method" } } 2. @ResPonseBody 사용. @PutMapping("/put-mapping/object") fun putMappingObject(@RequestBody user..
1. @PostMapping @RestController @RequestMapping("/api") class PostApiController { @PostMapping("/post-mapping") fun postMapping(): String{ return "post-mapping" } } 2. @RequestMapping 사용 시 @RequestMapping(method = [RequestMethod.POST], path = ["/request-mapping"]) fun requestMapping(): String { return "post-mapping2" } 3. @RequestBody HTTP 메세지 바디에 담겨있는 json data를 객체로 받기 위해서 @RequestBody 사용. HTTP..
@RestController를 사용하여 @GetMapping 사용 방법 들 을 알아보자. 1. @GetMapping import org.springframework.web.bind.annotation.GetMapping import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RestController @RestController @RequestMapping("/api") class GetApiController { @GetMapping("/hello") fun hello(): String{ return "hello kotlin" } } 다음과 같이 @RequestMa..
1. REST - Representational State Transfer: 자원의 상태 전달 Client, Server: 클라이언트와 서버가 서로 독립적으로 분리되어 있어야 한다. Stateless: 요청에 대해서 클라이언트의 상태를 서버에 저장하지 않는다. Cache: 클라이언트는 서버의 응답을 캐시할 수 있어야 한다. 클라이언트가 캐시를 통해서 응답을 재사용 할 수 있어야 하며, 이를 통해서 서버의 부하를 낮춘다. Layered System(계층화): 서버와 클라이언트 사이에 방화벽, 게이트웨이, Proxy 등 다계층 형태를 구성할 수 있어야 하며, 확장할 수 있어야 한다. 인터페이스의 일관성: 아키텍처를 단순화 시키고 작은 단위로 분리하여서, 클라이언트 , 서버가 독립적으로 개선될 수 있어야 한다..