반응형
쓸때마다 헤메는 HttpServletRequest method 정리입니다.
요청 URL : http://localhost:8090/jam/abc?type=spider
request.getRequestURL() :http://localhost:8090/jam/abc
request.getRequestURI() :/jam/abc
request.getContextPath() :/jam
request.getServletPath() :/abc
request.getServerName() :localhost
request.getServerPort() :8090
request.getQueryString() :type=spider
request.getPathInfo() :null
반응형
'java' 카테고리의 다른 글
spring security headers frameOptions 선택적 disable (0) | 2019.03.19 |
---|---|
spring boot favicon.ico (0) | 2019.03.09 |
java.lang.IllegalStateException: No Java compiler available for configuration options compilerClassName: [null] and compiler: [null] (0) | 2019.03.09 |
springboot mybatis-config.xml to Java Config (0) | 2019.03.08 |
java - zip, unzip (0) | 2019.02.18 |
java - spring boot - multipart max file size (0) | 2019.02.18 |
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field (0) | 2019.02.11 |
Apache POI 3.14 Exception - The maximum column width for an individual cell is 255 characters. (0) | 2019.02.08 |