已采纳回答 / Pumkin_zs
java.lang.reflect.UndeclaredThrowableException这个貌似表示反射有错误,未声明异常at com.sun.proxy.$Proxy10.createQuery(Unknown Source)代理,创建查询语句,未知的语句源at service.impl.usersDAOImpl.usersLogin(usersDAOImpl.java:22)at action.UsersAction.login(UsersAction.java:20)at sun.reflect...
2017-03-02
老师用的hibernate4.2.4,我也是用的4.2.4,为毛就是不能用
ServiceRegistry serviceRegistry =
new ServiceRegistryBuilder().applySettings(config.getProperties()).buildServiceRegistry();
ServiceRegistry serviceRegistry =
new ServiceRegistryBuilder().applySettings(config.getProperties()).buildServiceRegistry();
2017-03-01
出现org.hibernate.MappingException: Unknown entity:XXX.XXX 这个问题的
可以试一下下面这种语句 ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().configure().build();
可以试一下下面这种语句 ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().configure().build();
2017-02-27