发表于: 2017-03-17 21:47:46

1 1454


今天完成的事情:

学习Mybatis,编写Mybatis-demo

明天计划的事情:

学习Spring对Mybatis的支持。

遇到的问题:

利用Mybatis进行数据库的查询操作时,遇到了以下安全WARNING,

解决方法在URL后面加?useSSL=false

WARN: Establishing SSL connection without server's identity verification is not recommended. 

According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established 

by default if explicit option isn't set. For compliance with existing applications not using SSL 

the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL

 by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.


收获:

MyBatis(前身ibatis)是一种ORM(Object Relation Mapping)框架

建立了对象操作方法与SQL语句的映射。

使用Mybatis步骤

1.加载配置

Configure.xml

userMap.xml

2.生成SqlSessionFactory获取SqlSession

3.利用Session执行SQL


返回列表 返回列表
评论

    分享到