Java/Hibernate
文章平均质量分 76
安若晴
java
展开
-
学习Hibernate遇到的问题
最近在学习Hibernate,在测试的时候遇到这个错误:SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http://www.slf4j.org/codes.html#Stat...原创 2018-03-01 08:55:31 · 358 阅读 · 0 评论 -
Hibernate查询问题
一开始是这样写查询的,但是报错:org.hibernate.hql.ast.QuerySyntaxException: users is not mapped [select name from users] at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.j...原创 2018-03-02 08:53:41 · 187 阅读 · 0 评论 -
Spring整合Hibernate记录之数据库参数配置
环境:spring3 + hibernate3 对于数据库一些参数不需要经常修改,我们一般是写在配置文件,但是有时候又需要修改,spring提供了一个<content:property-placeholder>元素 只需要在spring配置文件添加<context:property-placeholder location="classpath:jdbc.proper...原创 2018-08-15 16:05:40 · 726 阅读 · 2 评论