摘要: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8 添加了useUnicode=true&characterEncoding=utf8参数之后,插入中文就正常了 阅读全文
posted @ 2020-07-16 22:12 jock_javaEE 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、 7.4.1. <mapper resource=" " /> 使用相对于类路径的资源(现在的使用方式,UserMapper接口与UserMapper.xml的包路径相同 如:<mapper resource="sqlmap/User.xml" /> 二、 7.4.2. <mapper clas 阅读全文
posted @ 2020-07-16 20:53 jock_javaEE 阅读(561) 评论(0) 推荐(0) 编辑