반응형
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 | 31 |
Tags
- MVC
- spring security
- servlet
- oauth
- ServletContextListener
- 한글 처리
- 점사라짐
- servletContext
- #java
- #sendRedirect()
- Spring Boot
- jsp
- 서블릿 초기화 파라미터
- tomcat
- 데이터 공유
- 서블릿
- spring5
- ServletConfig
- Container
- 확장자 사라짐
- @PathVariable
- #jsp
- Servelt
- 웹 어플리케이션 감시
- Spring
- #페이지이동
- 디자인패턴
Archives
- Today
- Total
목록확장자 사라짐 (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