
mysql和ORM
yefengzhichen
这个作者很懒,什么都没留下…
展开
-
Mysql6.0连接中的几个问题
在最近做一些java web整合时,因为我在maven官网查找的资源,使用的最新版,6.0.3,发现Mysql连接中的两个问题,总结两个如下:1、Loading class `com.mysql.jdbc.Driver'.This isdeprecated. The new driver class is `com.mysql.cj.jdbc.Driver。按照书上的教程,写了如下原创 2016-07-05 21:01:46 · 18776 阅读 · 3 评论 -
使用Spring整合Hibernate出现无法自动建立表的问题
在使用Spring整合Hibernate时,出现一个莫名其妙的问题,Spring整合Hibernate出现无法自动建立表,花了好几个小时也没有查找是怎么回事。具体如下:1、在Hibernate配置文件中设置了:update在Junit测试中代码是:public class SpringHibernateTest extends TestCase { private A原创 2016-07-06 10:49:17 · 6982 阅读 · 3 评论 -
spring4, hibernate4 整合问题
在整合spring和hibernate中,出现了一下错误:org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current在Dao层程序中获取session是这样的:@Repositorypublic class BookShopDaoImpl implement原创 2016-07-07 12:03:25 · 508 阅读 · 0 评论 -
centos7 mysql数据库安装和配置(mysql-server安装失败)
转载自: http://www.cnblogs.com/starof/p/4680083.html。 因为自己在用的时候安装时遇到相同的问题。centos7 mysql数据库安装和配置一、系统环境yum update升级以后的系统版本为[root@yl-web yl]# cat /etc/redhat-release CentOS Linu转载 2016-10-14 14:47:29 · 1148 阅读 · 0 评论