Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Servelt
- servletContext
- tomcat
- oauth
- Container
- ServletContextListener
- 점사라짐
- MVC
- 웹 어플리케이션 감시
- 데이터 공유
- #페이지이동
- ServletConfig
- 한글 처리
- spring security
- #sendRedirect()
- Spring
- 서블릿 초기화 파라미터
- #java
- #jsp
- Spring Boot
- @PathVariable
- 서블릿
- jsp
- spring5
- 확장자 사라짐
- servlet
- 디자인패턴
Archives
- Today
- Total
목록@PathVariable (1)
Choi의 고유결계
Spring - @PathVariable 점(.)이 사라진다?
스프링5에 존재하는 @PathVariable은 @GetMapping과 @PostMapping을 통해 URL맵핑을 이용할때 사용되는 어노테이션이다. 예를 들면 아래와 같은 코드가 있다고 하자. @RestController public class CustomController { @GetMapping("/example/{firstValue}/{secondValue}") public void example(@PathVariable("firstValue") String firstValue, @PathVariable("secondValue") String secondValue) { // ... } } 예를들어 접근 URL이 /example/hi.hi2/choi.123 이라고 치면 @PathVariable("fir..
Spring
2019. 6. 18. 22:38