mybatis에서 string argument 보낼 때

parameterType을 string으로 지정할 필요는 없지만

mybatis tag에서 변수를 사용하려면 객체에 담아서 보내야 한다.

객체없이 스트링으로는

<if test="name != null" >

같이 name 변수를 쓸수 없다.

name은 객체에서 getter로 받아 오기 때문이다.

tag를 안쓰고

쿼리에서 #{name } 은 getter가 필요 없다.


InternetAddress 사용시 missing local name

메일 user 입력에 이메일 도메인까지 써야 된다.

kimsungwook@hanamil.net  @hanmail.net 이 없으면 나는 에러

+ Recent posts