Hibernate配置文件hibernate.cfg.xml的详解

首先将配置文件起名字为hibernate.cfg.xml 使用<hibernate-configuration>标签 在<hibernate-configuration>标签中加入<session-factory>标签 然后是<property>标签: name=connection.url————–就是对应的数据库地址:jdbc:mysql://localhost:3306/hibernate
相关文章
相关标签/搜索