servlet-day02/src/hibernate.cfg.xml

  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE hibernate-configuration (View Source for full doctype...)>
- <hibernate-configuration>
- <session-factory>
<!--
 配置数据库的连接信息  
  -->
  <property name="connection.url">jdbc:mysql://127.0.0.1:3306/test</property>
  <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
  <property name="connection.username">root</property>
  <property name="connection.password">root</property>
  <property name="hbm2ddl.auto">create</property>
  <property name="show_sql">true</property>
  <mapping resource="entity/Student.xml" />
  </session-factory>
  </hibernate-configuration>
阅读更多
个人分类: WEB
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭