码迷,mamicode.com
首页 >  
搜索关键字:hibernate hbm2ddl.import_files 中文乱码    ( 15282个结果
[转] 解决HttpServletResponse输出的中文乱码问题
首先,response返回有两种,一种是字节流outputstream,一种是字符流printwrite。申明:这里为了方便起见,所有输出都统一用UTF-8编码。先说字节流,要输出“中国",给输出流的必须是转换为utf-8的“中国”,还要告诉浏览器,用utf8来解析数据//这句话的意思,是让浏览器用...
分类:其他好文   时间:2014-05-16 07:32:02    阅读次数:309
【原创】spring4.x + hibernate4.x 配置详解
关于spring和hibernate的使用以及特征等等,在此不再啰嗦,相信大家也都知道,或者去搜索一下即可。本篇博文的内容主要是我最近整理的关于spring4.x 和 hibernate 4.x 相关配置和使用方式,当然spring3.x以及hibernate4.x也可以借鉴。首先是配置文件 web...
分类:编程语言   时间:2014-05-16 07:11:53    阅读次数:489
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session
出错原因很简单:数据库服务没开,自然就打不开Session了。
分类:编程语言   时间:2014-05-16 06:44:46    阅读次数:479
Struts2+Hibernate+Spring框架实现增删改查
一、添加3个框架的JAR包,完成后写配置文件;1、web配置文件: 1 2 3 oa 4 5 index.html 6 index.htm 7 index.jsp 8 default.html 9 default.htm10 defaul...
分类:编程语言   时间:2014-05-15 16:08:58    阅读次数:2309
初识缓存以及ehcache初体验
初识缓存以及ehcache初体验...
分类:其他好文   时间:2014-05-15 06:15:47    阅读次数:281
Eclipse查询MySql、添加中文乱码问题
一、设置MyEclipse的字符编码,步骤如下: 1、进入Window--Preferences--General--Workspace,Text file encoding 选项中默认的Default(GBK)选项更改为Other,并将值设为utf-8; 2、进入Window--Preferences--MyEclipse--Files and Editors,将这个选项下面的:ASP ...
分类:数据库   时间:2014-05-15 04:18:55    阅读次数:299
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session异常解决办法
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session异常解决办法为什么还会说已经存在相同的se...
分类:系统相关   时间:2014-05-14 23:40:06    阅读次数:419
Spring JPA 缺少 JAR 引起异常
记录整合中缺少 JAR 文件引起的异常版本 Spring 3+ Hibernate 4+ JPA 1、Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingExceptio....
分类:编程语言   时间:2014-05-14 23:25:27    阅读次数:488
关于数据库与Hibernate匹配时的小问题
今天做了一个小程序,jsp输入一些字段,action中将这些字段放到list中,然后从数据库get到那列数据,同样放到另一个list中,然后进行值相等的判断,就是这么简单的一个程序。但因为很久没碰Hibernate了,所以执行起来有些坎坷。列出如下问题:空指针异常频发,这是因为在vo类中..
分类:数据库   时间:2014-05-14 17:31:38    阅读次数:384
JAVA API集
1.JavaEE5API(含JSFAPI)http://java.sun.com/javaee/5/docs/api/2.HibernateAPIDocumentation(3.2.2.ga)http://www.hibernate.org/hib_docs/v3/api/3.SpringFrameworkAPI2.5http://static.springframework.org/spring/docs/2.5.x/api/index.html4.1Struts1.3.8APIhttp://struts..
分类:编程语言   时间:2014-05-14 16:51:34    阅读次数:407
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!