Spring Data Rest URL 생성 분석
최근 업무에서 /api/entities이란 URL이 존재하는데, 아무리 Source를 뒤져봐도 해당 URL을 찾을 수 없었다.
1 2 3 4 5 6 7 8 9 10 |
class checkPage extends React.Component { render() { return ( <BasePage resource='/api/entities' ... /> ); } } |
몇 번 삽질을 하다가 결국 spring-data-rest를 사용했음을 알게 되었고, 해당 Library를 초기 분석한 내용을 기록해둔다. 공식문서1에 따르면 dependency는 아래처럼 설정해주면 된다.
1 2 3 4 5 6 7 8 9 |
dependencies { compile("org.springframework.boot:spring-boot-starter-data-rest") ... } dependencies { compile("org.springframework.data:spring-data-rest-webmvc:3.0.5.RELEASE") ... } |
그리고 기본 BaseUrl은 아래처럼… 더 보기 »Spring Data Rest URL 생성 분석