Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 리스트비교
- Spring
- lightsail
- 리스트차집합
- AWS
- PostgreSQL
- 중복제거
- list중복제거
- instance생성
- hashset
- ansible
- 리스트교집합
- wordpress블로그
- 지옥같은git
- mybatis
- enumtype
- 널포인터에러
- 권한정책
- postgresql13
- Java
- WordPress
- 두개리스트비교
- route53
- Annotation
- 리스트합집합
- enum
- awsconsole
- anymatch메서드
- db
- peer authentication 에러
Archives
- Today
- Total
Anyway
[DB] Mybatis에서 if문에 enum 비교값 사용하기
public enum IssueType { A, B, C} 클라이언트로부터 받아오는 enum 값에 따라 xml if문에 각각 다른 sql문을 쓰고 싶었다. (DB : postgresql) 첫 번째 작성한 코드 AND A = true AND B = true AND C = true 클라이언트가 issueType을 null 값으로 주고 api를 날렸을 경우 에러가 난다. ➡️ 에러 내용 NullPointerExceptionorg.apache.ibatis.exceptions.Pers..
Database
2024. 12. 18. 15:27