'DataBase > MySQL' 카테고리의 다른 글
[MySQL] TIMEZONE 설정 (0) | 2016.03.07 |
---|---|
[CentOS] mysql, maria DB sql 파일 import (0) | 2016.02.29 |
MySQL] dump / import (0) | 2016.01.24 |
[MySQL]DELETE Join delete (0) | 2015.09.21 |
[MySQL] Date 날짜 형식 바꾸기 (0) | 2015.09.21 |
[MySQL] TIMEZONE 설정 (0) | 2016.03.07 |
---|---|
[CentOS] mysql, maria DB sql 파일 import (0) | 2016.02.29 |
MySQL] dump / import (0) | 2016.01.24 |
[MySQL]DELETE Join delete (0) | 2015.09.21 |
[MySQL] Date 날짜 형식 바꾸기 (0) | 2015.09.21 |
JavaScript 절대주소
javax.servlet.http.HttpServletRequest
오브젝트가 제공하는 정보를 활용하면 절대 주소를 획득하는 것이 가능하다. JSP에서는 아래와 같이 해당 정보를 획득할 수 있다.
${pageContext.request.scheme}
: http${pageContext.request.serverName}
: localhost${pageContext.request.serverPort}
: 8080${pageContext.request.contextPath}
: /someAppJSP에서 구현된 JavaScript에서는 위 정보를 활용하여 아래와 같이 웹 애플리케이션의 절대 주소를 획득할 수 있다.
var absoluteUrl = '${pageContext.request.scheme}' + '://' + '${pageContext.request.serverName}' + ':' + '${pageContext.request.serverPort}' + '${pageContext.request.contextPath}';
[JSP] document.XXXform.submit() 값 변경 (0) | 2016.04.04 |
---|
SpringFramework
@RequestMapping (value="{value}", method = RequestMethod.POST)
public TYPE METHODNAME (@PathVariable ("value") TYPE value){
}
@PathVariable 로 값을 받을시 value 값으로 dot (.)이 들어갈때
{value:.+}
즉, :.+ 가 들어가야 받을수 있다.
[Mybatis] 스프링 + 트랜잭션 (0) | 2016.04.18 |
---|---|
[SpringFramework] POST 전송시 ContentType (0) | 2016.03.04 |
[Spring] Ajax PUT 메서드 (0) | 2016.02.24 |
[SrpingFrameWork]Json 406 error (0) | 2016.01.11 |
[MyBatis] error There is no getter for property named 'mbrId' in 'class java.lang.String' (0) | 2015.10.05 |
http 415 error를 내뿜을때
Spring Controller 에서는
@RequestBody 로 받아야 하며
ajax 통신에서
data를 JSON.stringify() 로 넣어줘야한다.
왜냐하면 Ajax 통신에서 json 으로 보낼때 스트링으로 변환된야되기때문이다.
아니면 Spring Controller 에서 inputStream으로 스트링으로 변환하면된다.
[SpringFramework] POST 전송시 ContentType (0) | 2016.03.04 |
---|---|
[Spring] PathVariable dot 오류 (0) | 2016.02.26 |
[SrpingFrameWork]Json 406 error (0) | 2016.01.11 |
[MyBatis] error There is no getter for property named 'mbrId' in 'class java.lang.String' (0) | 2015.10.05 |
[Spring] Json null항목 제거 표현 (0) | 2015.07.27 |
이클립스 패키지 알리아스
패키지가 길어지면 package explorer 창에서 소스가 보기 힘들어진다.
Window > Java > Appearance
Abbreviate apckage names 체크후
아래 창에
패키지경로 = [알리아스 명]
위와 같이 수정된다 (경로는 같다.)
이클립스, STS 검색시 target 제외 설정 (1) | 2016.12.27 |
---|---|
이클립스, STS 자동 Import (0) | 2016.12.27 |
[eclipse] Eclipse Android SDK ERROR (0) | 2016.01.05 |
[eclipse] 주석양식 (0) | 2015.08.07 |
[eclipse] get,set 단축키 (0) | 2015.07.16 |