mybatis + mysql 한글 입력시 깨짐

struct2 + mybatis + mysql 조합의 게시판 구현중

jsp -> struct2 까지 한글 잘넘어감
mysql에 직접 한글 insert도 잘됨
mybatis -> mysql 에서 문제가 생기고 있을때

해결책
jdbc.url=jdbc:mysql://localhost:3306/디비명?useUnicode=true&characterEncoding=utf8

한글깨짐 현상에 대한 정리페이지
http://egloos.zum.com/jth8172/v/11176221

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s