![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
fengzhi714
这个作者很懒,什么都没留下…
展开
-
Hibernate4.X could not initialize proxy - no Session
could not initialize proxy - no Session 在web.xml中添加如下代码: <filter> <filter-name>openSessionInViewFilter</filter-name> <filter-class>org.springframework.orm.hibernate4...原创 2015-05-16 09:39:31 · 189 阅读 · 0 评论 -
hibernate 4.x HibernateUTil.java
import org.hibernate.SessionFactory; import org.hibernate.boot.registry.StandardServiceRegistryBuilder; import org.hibernate.cfg.Configuration; import org.hibernate.service.ServiceRegistry; pub...原创 2015-05-16 09:48:09 · 89 阅读 · 0 评论 -
Unable to compile class for JSP
Struts2+Hibernate+Spring 整合时出现: org.apache.jasper.JasperException: Unable to compile class for JSP 检查项目中是否有相同的Jar包(jsp-api.jar、servlet-api.jar),可能与Tomcat中的冲突。删掉即可。 ...原创 2015-07-03 16:05:35 · 121 阅读 · 0 评论 -
Maven 配置SSH,Class not found
Maven 配置web 项目时,Jar都通过maven配置引入了,但是运行时,提示类找不到: 第一步:检查jar是否引入或者冲突 第二部:右键项目--选择“properties”--“deployment assembly”;查看是否在项目组中加入了maven依赖包 如果没有加入,点击右边的 “Add” 将maven依赖包加入项目中: ...原创 2015-07-06 17:30:09 · 90 阅读 · 0 评论 -
hibernate hbm.xml 文件报错
Caused by: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 20; 必须声明元素类型 "hibernate-mapping" Could not parse mapping document from file 解决方法: 1、检查数据类型 int - java.lang.I...原创 2016-05-18 11:20:55 · 345 阅读 · 0 评论 -
Mysql 创建数据库或表名是使用特殊符号
数据库名或表名出现特殊字符是用反引号包含,如:T-Test--> `T-Test` 在Hibernate中,在配置文件的catalog属性或table加上``,如 catalog = “`T-Test`”,table=“`T-Test`” ...原创 2015-08-04 17:44:55 · 2650 阅读 · 0 评论 -
project facet java version 1.8 is not
project facet java version 1.8 is not 出现这个问题查看三个地方是否一致就可以了原创 2015-10-28 15:42:57 · 151 阅读 · 0 评论