본문 바로가기
Backend - Java Spring/Spring Boot 초급

[Boot3] 글 한개 조회하는 API 구현

by VictorMeredith 2024. 2. 13.

- Service

 

- Controller

@PathVariable("id") 로 이름을 매핑해준다. 이거 에러나서 이렇게했다

 

- Test Code

- 문법이 개빡친다

댓글