![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
路迷
人的一生要勇于尝试!
展开
-
hibernate连接sqlserver、mysql数据库
hibernate--一个持久化框架,是ssh三大框架中的重头戏,它取代了传统的jdbc,大大的方便了开发人员操作、切换数据库,在web开发或其他开发中发挥着重要作用。在传统的jdbc开发中,如果开发人员要切换数据库,基本上要重写dao层,特别是那些用到sql语句的代码块。下面就来看看hibernate是怎么连接sqlserver、mysql数据库的: 1、hibernate连接sqlsever原创 2017-04-19 19:45:31 · 3815 阅读 · 2 评论 -
hibernate.cfg.xml---hibernate配置文件,基本版
使用hibernate开发时,hibernate.cfg.xml是必要的配置文件,且必须放在src文件夹下,具体代码如下: "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> com.micr原创 2017-04-22 15:37:21 · 2588 阅读 · 0 评论