강의

멘토링

커뮤니티

Inflearn Community Q&A

onetwocoding's profile image
onetwocoding

asked

Spring Boot Web MVC developed with Kotlin

Writing Unit Tests for RestController

getTest()에 Map<string, string>인 이유

Written on

·

202

0

age는 Int인데 왜 Map<String, String>으로 한것인가요? <String, Any>가 맞는거 아닌가요?

MVCrest-apispring-bootJUnit

Answer 1

0

steve님의 프로필 이미지
steve
Instructor

안녕하세요

제가 해당 질문에 대한 알림을 놓쳐서 늦게 답변드려 너무 죄송합니다.

해당 부분에서 String는 큰 의미를 둔 부분은 아니고  query parameter는 문자열로 주소에 들어 가므로 사용한 부분이도 Any로 하셔도 무방할것 같습니다 ^^

onetwocoding's profile image
onetwocoding

asked

Ask a question