Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 프로래머스
- JVM
- 백준 19238
- 백준
- Coroutine
- JPA
- 백준 16236
- 백준 17779
- 프로그래머스
- 백준 파이썬
- java 기술면접
- MSA
- 백준 16235
- spring oauth
- re.split
- 웹어플리케이션 서버
- 파이썬
- 백준 17626
- spring cloud
- springboot
- java
- Kotlin
- 백준 16719
- sql 기술면접
- with recursive
- 백준 15685
- spring security
- MySQL
- Spring Boot
- Spring
Archives
- Today
- Total
시작이 반
[Spring] @RequestMapping- @PostMapping @GetMapping 본문
SMALL
@RequestMapping(value = "/test", method = { RequestMethod.POST })
▼
@PostMapping("/test")
이런식으로 사용가능
GetMapping도 마찬가지
클래스 단에 사용하면
@RequestMapping(value = "/hello")
public class test{
...
@GetMapping("/Spring")
public Stirng goToSpirng(Model model){
return "Spring";
}
}
/hello/Spring
이런식인듯..
LIST
'Programming > Spring' 카테고리의 다른 글
[Spring] @RequestParam, @PathVariable (0) | 2021.01.25 |
---|---|
[Spring] @Controller @RestController (0) | 2021.01.25 |
[Spring] 11. AOP (0) | 2021.01.22 |
[Spring] 10. 스프링 DB접근 기술 - H2 DB 설치, JDBC Template, JPA, 스프링 데이터 JPA (0) | 2021.01.21 |
[Spring] 9.회원 관리 예제 - 웹 MVC 개발 (0) | 2021.01.21 |