강의

멘토링

커뮤니티

Inflearn Community Q&A

yoonjoy's profile image
yoonjoy

asked

Spring-based REST API development

Introduction to Spring REST Docs

응답값에서 질문있습니다

Written on

·

195

0

현재 강의부터 응답의 헤더의 Location값과 Redirected URL 값으로 주소가 localhost가 아닌 localhost:8080으로 변해있는데, 아무리 이전강의 뒤져봐도 연관관계가 없어서요. 혹시 어떻게 변한건가요?

rest-apijavaspring

Answer 2

1

whiteship님의 프로필 이미지
whiteship
Instructor

아.. 테스트 실행시 응답 본문 말씀하시는거군요. 스프링 Rest Docs를 적용하면서 바뀐 부분인데요. 기본값으로 8080이 설정되어있어서 그렇습니다. 자세한건 아래 레퍼런스에서 설정하는 방법도 참고하실 수 있습니다.

https://docs.spring.io/spring-restdocs/docs/current/reference/html5/#configuration-uris-mockmvc

0

whiteship님의 프로필 이미지
whiteship
Instructor

이전 강의에서는 localhost:8080을 안쓰고 localhost를 썼었나요? 어디에 있는 URL 값이 바뀌었다는 말씀이시죠?

yoonjoy's profile image
yoonjoy

asked

Ask a question