zoukankan      html  css  js  c++  java
  • the user must supply a jdbc connection 错误解决方法

    转自:https://blog.csdn.net/actionzh/article/details/54200451
    今天在配置hibernate之后,进行添加数据测试时,运行中报出了 the user must supply a jdbc connection 这个错误 ,回头看了一下配置文件,原来是hibernate的属性配置写错了。
     
    正确的hibernate属性配置应该时这样:
     1 <session-factory>
     2         <property name="dialect">
     3             org.hibernate.dialect.MySQLDialect
     4         </property>
     5  
     6         <property name="connection.driver_class">
     7             com.mysql.jdbc.Driver
     8         </property>
     9  
    10         <property name="connection.url">
    11             jdbc:mysql://localhost:3306/mybbs
    12         </property>
    13  
    14         <property name="connection.username">root</property>
    15  
    16         <property name="connection.password"></property>
    17  
    18         <property name="myeclipse.connection.profile">mysql</property>
    19  
    20  
    21         <mapping resource="com/mybbs/pojo/Userinfo.hbm.xml" />
    22     </session-factory>
  • 相关阅读:
    75. Sort Colors
    101. Symmetric Tree
    121. Best Time to Buy and Sell Stock
    136. Single Number
    104. Maximum Depth of Binary Tree
    70. Climbing Stairs
    64. Minimum Path Sum
    62. Unique Paths
    css知识点3
    css知识点2
  • 原文地址:https://www.cnblogs.com/sharpest/p/9767089.html
Copyright © 2011-2022 走看看