일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SpringBoot
- JPQL
- Proxy
- Android
- pointcut
- http
- Greedy
- Thymeleaf
- 알고리즘
- JDBC
- springdatajpa
- Spring Boot
- transaction
- 스프링 핵심 기능
- 백준
- 스프링 핵심 원리
- 인프런
- Servlet
- 김영한
- QueryDSL
- spring
- jpa
- kotlin
- 그리디
- db
- AOP
- java
- 자바
- 스프링
- Exception
- Today
- Total
목록kopring (2)
개발자되기 프로젝트
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..