스프링

[Spring tips] VO에 필드에 Integer 쓰는 이유

배고파요 2022. 1. 20. 14:10
728x90

파라미터가 null 인 경우에 오류가 발생함.








https://jul-liet.tistory.com/182

 

[Mybatis] 파라미터가 null일 경우에  NullPointerException?

개발하면서 vo의 필드를 int(primitive type)가 아닌 Integer(Reference type)로 만드는걸 보고 왜지...? 라고 생각하고 아무생각 없었다 이번에 mybatis로 where절에서 null일경우 처리를 할때 알았다 int로 vo..

jul-liet.tistory.com

 

728x90