- 博客(12)
- 资源 (1)
- 收藏
- 关注
转载 【转】myeclipse下 Generating Artifacts 问题解决
1、在myeclipse中使用hibernate进行“Hibernate Reverse Engineering”报如下错:An internal error occurred during: "Generating Artifacts".Path must include project and resource name: /找到工程下的 .myhibernatedata
2012-07-25 20:19:49
5459
原创 处理mysql数据库与hibernate中文乱码问题
问题描述: 通过hibernate向数据库中插入的中文数据在数据库中显示?或乱码; 数据库中中文正常,通过hibernate访问时不能正常显示。解决方法: 1在hibernate.cfg.xml中添加下面语句 true UTF-8 2修改mysql的配置文件my.ini中的default-characte
2012-07-25 15:02:18
659
转载 【转】hibernate 错误:org.hibernate.HibernateException: Unable to get the default Bean Validation factory
前几天看了一下教程 ,自己试着配置了一下web下的hibernate,悲剧的时,出错了提示下面:[java] view plaincopy信息: Hibernate Validator bean-validator-3.0-JBoss-4.0.2Exception in thread "main" org.hibernate.Hibernat
2012-07-25 14:20:43
2361
原创 C++输入输出中文 的例子
<br /> 昨天用vs2005写读取手机联系人的程序时遇到了没法读出中文的问题,查了资料后有了解决方法。这里做个小记录,已备以后查看使用。<br /> C++里面具体使用什么字符集要程序员自己去设定,这就是imbue的作用,那不能输入输出汉字也是这个问题,只要像下面一样设置下就可以了。<br /><br /><br />#include"stdafx.h"<br />#include<iostream><br />using namespacestd;<br /><br />int_tmain(i
2011-05-26 09:38:00
6330
转载 关于C++中文字符的处理
一 引入问题代码 wchar_t a[3]=L”中国”,编译时出错,出错信息为:数组越界。但wchar_t 是一个宽字节类型,数组a的大小应为6个字节,而两个汉字的的unicode码占4个字节,再加上一个结束符,最多6个字节,所以应该不会越界。难道是编译器出问题了?二 解决引入问题所需的知识 主要需两方面的知识,第一个为字符尤其是汉字的编码,以及语言和工具的支持情况,第二个是vc/c++中MutiByte Charater Set 和 Wide Character Set有关内存分配的情况.三 汉字的编
2011-05-25 11:56:00
1147
原创 error C2248: 'std::basic_ios::basic_ios' : cannot access private member declared in class 'std::basic_ios'
<br />问题:<br /> <br />1>compute.cpp<br />1>d:/microsoft visual studio 8/vc/include/fstream(933) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'<br />1> with<b
2011-05-25 11:04:00
2509
原创 error C2065: 'fstream' : undeclared identifier error C3861: 'opfile': identifier not found
问题:1>compute.cpp1>f:/programe/compute/compute.cpp(15) : error C2065: 'fstream' : undeclared identifier1>f:/programe/compute/compute.cpp(15) : error C2146: syntax error : missing ';' before identifier 'opfile'1>f:/programe/compute/compute.cpp(15) : error C3
2011-05-25 10:42:00
3087
原创 中文与ascii码相互转换
少量的中文与ascii互相转换 将中文译为ascii码: 打开命令行窗口-->输入命令 native2ascii 后回车-->在闪动的光标处输入中文,然后回车。 将ascii码转为中文: 打开命令行窗口-->输入命令 native2ascii -reverse 后回车-->在闪动的光标处输入ascii码,然后回车。大量的中文与ascii互相转换 准备工作: 将要转换的中文或ascii码存入文件before.txt(随便起名);新建一个文
2011-03-18 16:28:00
3270
转载 Tomcat无法启动问题
1.如果双击startup.bat,窗口一闪而过,可以在命令行里面启动startup.bat;2.如果命令行里面启动startup.bat情况还是这样,就可以在bat命令后面加上pause。这样就不会一闪而过了;3.为何startup无法启动?? 首先错误如下: The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this prog
2011-03-17 16:15:00
3668
原创 Could not find the main class.Program will exit.
问题描述:将一个工程导入eclipse后,运行时报错“Could not find the mainclass.Program will exit.”原因分析:我原先编译这个工程是使用的jdk1.6,后来由于某些原因换成了jdk1.5,结果出现了上面的问题。应该是因为重新导入工程后用低版本的jvm运行高版本jdk编译的文件。解决方法:工程名处右键-->选择“Properties”-->点击“Java Compiler”-->将右侧框中的“Compiler compliance level”以及它下面的设
2011-03-11 10:20:00
1027
原创 eclipse中导入项目后中文成乱码
原因:导入的文件成为了乱码是因为workspace的编码方式不对 linux下默认编码是UTF-8,windows的是GBK。解决方法:修改workspace的编码方式。Window-->Preference-->General-->Workspace,将编码方式由GBK改为UTF-8即可。
2011-03-09 13:58:00
565
原创 将已存在的工程导入eclipse中
点击菜单栏中“File”-->选择“Import...”-->选择General下的“Existing Projects into Workspace”,然后点击下一步-->点击“Browse”,选择要导入的工程,然后点击确定-->将"Projects"下要导入的工程打钩,将对话框下方的“Copy projects into workspace”打钩-->点击“Finish”完成导入。按此操作后就能在eclipse中看到要导入的工程
2011-03-09 13:45:00
649
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人