Mapping 시
ex)@GetMapping("/user/{userId}")
{userId} 파라미터 값을 가져오기 위해
public ResponseEntity<UserResponse> getUserDtl(@PathVariable("userId") long userId)
같은 방식으로 쓸 수 있다.
찾으면 찾을수록 기초공부가 중요하다는 걸 느낀다.
'여러가지' 카테고리의 다른 글
SQL 쿼리 모음 (0) | 2020.11.08 |
---|---|
객체지향이란 무엇인가? (0) | 2020.09.12 |