반응형
if 태그 안에서는 '<, >' 와 같은 부등호를 XML Pasing 으로 인식하기 때문에 적용이 되지 않는다.
기호 | 대체문자 | 예제 |
< | lt | <if test="param lt 5"> |
> | gt | <if test="param gt 5"> |
<= | lte | <if test="param lte 5"> |
>= | gte | <if test="param gte 5"> |
or, and 문도 ||, && 가 아닌 or, and 문자 형식으로 사용해야한다.
기호 | 대체문자 | 예제 |
|| | or | <if test="param lt 5 or param gt 0"> |
&& | and | <if test="param lt 5 and param2 lt 1"> |
null, nullString 체크 같은 경우에는 아래와 같이 쓴다.
<if test="param != null and !param.equals('')"> |
반응형
'개발 & 데이터베이스 > JAVA' 카테고리의 다른 글
자료구조 데크 deque (0) | 2024.02.21 |
---|---|
JAVA 자바 정규표현식으로 주민등록번호, 이메일 유효성 검사하기 (Pattern, Matcher) (0) | 2023.08.09 |
IntelliJ IDE 다운로드 방법 및 프로젝트 생성하기 (0) | 2023.07.24 |
자바 디컴파일러 JD-GUI 사용 방법 (.jar, .class 파일) (0) | 2023.07.17 |
사용 중인 포트 종료하는 방법 - Identify and stop the process that's listening on port 8080 or configure this application to listen on another port. (0) | 2023.07.12 |