-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
Resource -> EntityModel 로 변경되었습니다.
20.02.06 16:24 작성 조회수 205
21
현재 스프링 부트 공식 페이지 보고 알았네요.
따라하시는 분들, 아마 Resource 임포트 안되실 겁니다.
강의 이후에 공식 클래스 이름이 바뀌었나보네요.
도큐먼트에 다음과 같이 나와있습니다. 참고하세요.
-
ResourceSupport
is nowRepresentationModel
-
Resource
is nowEntityModel
-
Resources
is nowCollectionModel
-
PagedResources
is nowPagedModel
마찬가지로 linkTo 임포트 안되시는 분들은 임포트 부분을 다음으로 바꿔보세요 ㅎㅎ
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;
답변을 작성해보세요.
답변 5