大神們求解
三月 19, 2017 11:27:09 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
三月 19, 2017 11:27:09 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
三月 19, 2017 11:27:09 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
三月 19, 2017 11:27:09 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
三月 19, 2017 11:27:09 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
三月 19, 2017 11:27:09 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
三月 19, 2017 11:27:10 下午 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
三月 19, 2017 11:27:10 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Student.hbm.xml
2017-04-04
寫(xiě)了路徑后就是這樣
2017-03-31
你自己的路徑不對(duì)呀,這個(gè)是我的項(xiàng)目的,路徑包含包名的,希望能幫到你...
2017-03-22
我也是這個(gè)錯(cuò)誤,樓主找到解決方法了么??
2017-03-20
運(yùn)行后,就是那個(gè)錯(cuò)誤,求解,謝謝
2017-03-20
package Stu;
import java.util.Date;
public class Students {
private int id;
private String sname;
private String gender;
private Date birthday;
private String address;
public Students(){
}
public Students(int id, String sname, String gender, Date birthday, String address) {
// super();
this.id = id;
this.sname = sname;
this.gender = gender;
this.birthday = birthday;
this.address = address;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getSname() {
return sname;
}
public void setSname(String sname) {
this.sname = sname;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
@Override
public String toString() {
return "Students [id=" + id + ", sname=" + sname + ", gender=" + gender + ", birthday=" + birthday
+ ", address=" + address + "]";
}
}
2017-03-20
?hibernate.properties not found 目前信息太少,可能是你沒(méi)有這個(gè)文件.
試著把完整信息發(fā)出來(lái)...