| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- elasticsearch
- 리뷰
- 인터페이스
- effective
- node
- Spring Boot
- javascript
- error
- 독후감
- 백준
- 알고리즘
- 후기
- nodejs
- Web
- kibana
- 맛집
- java8
- 이펙티브
- 엘라스틱서치
- JPA
- Git
- jface
- 스프링
- java
- Spring
- RCP
- 자바
- boot
- 자바스크립트
- MySQL
Archives
- Today
- Total
목록bind (1)
wedul
Mabatis #, $ 차이점
Mabatis 사용 시 #, $의 차이점을 정확하게 정리하지 않아 헷갈렸다. [차이점] 1. select * from member where id = #{dto.id} 2. select * from member where id = ${dto.id} 1번 방식(#)은 select * from member where id = ? 다음과 같이 진행되어 바인딩 되어 실행되기 때문에 SQL Injection 대비가 가능하다. 2번 방식($)은 ${dto.id} 영역에 데이터로 값을 치환해서 텍스트 자체로 사용한다.
web/Spring
2018. 5. 27. 11:45
