| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- java
- node
- 알고리즘
- 독후감
- JPA
- 이펙티브
- 스프링
- 엘라스틱서치
- javascript
- 리뷰
- Git
- elasticsearch
- Web
- 후기
- Spring Boot
- effective
- 맛집
- RCP
- error
- jface
- nodejs
- MySQL
- 백준
- Spring
- 자바
- kibana
- 인터페이스
- 자바스크립트
- boot
- java8
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