| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 알고리즘
- Git
- error
- 엘라스틱서치
- 인터페이스
- 이펙티브
- kibana
- 독후감
- 후기
- effective
- 스프링
- boot
- Web
- 자바
- node
- MySQL
- RCP
- elasticsearch
- JPA
- 자바스크립트
- javascript
- Spring Boot
- jface
- Spring
- 맛집
- nodejs
- java8
- java
- 백준
- 리뷰
Archives
- Today
- Total
wedul
UriComponents 클래스 본문
반응형
UriComponents 클래스
UriComponents클래스는 Path나 query에 해당하는 문자열들을 추가해서 원하는 URI를 생성할 때 사용한다.
UriComponents uricomponets = UriComponentsBuilder.newInstance().path("/board/read").queryParam("bno",12).queryParam("perPageNum", 20).build();
logger.info(uricomponets.toString());
다음과 같이 지정하게 되면,
INFO : com.wedul.spring.UriComponentsTest - /board/read?bno=12&perPageNum=20
다음과 같이 설정되어 출력된다.
반응형
'web > Spring' 카테고리의 다른 글
| Mybatis String을 ParameterType으로 넘길때 (0) | 2018.05.27 |
|---|---|
| spring에서 List 또는 Array 데이터를 Controller에서 받기 (0) | 2018.05.27 |
| Mybatis의 동적 SQL (0) | 2016.12.27 |
| STS의 github 연동 (0) | 2016.12.21 |
| Mybatis의 #{} 문법 사용방법 (0) | 2016.12.21 |
