- 博客(31)
- 资源 (43)
- 收藏
- 关注
原创 oracle:http://localhost:5560/isqlplus/ 访问不了,解决方案
进入控制台 cmd输入isqlplusctl startC:\Users\lenovo>isqlplusctl startiSQL*Plus 10.2.0.3.0Copyright (c) 2003, 2006, Oracle. All Rights Reserved.Starting iSQL*Plus ...iSQL*Plus started.成启
2013-05-13 08:30:19
3151
原创 DBCP.properties 模版
#连接设置driverClassName=com.mysql.jdbc.Driverurl=jdbc:mysql://localhost:3306/mydbusername=rootpassword=root#dataSource.initialSize=10#dataSource.maxIdle=20#dataSource.minIdle=5
2013-04-03 16:12:51
3433
原创 HTTP请求头和响应头含义
1)请求(客户端->服务端[request]) GET(请求的方式) /books/java.html(请求的目标资源) HTTP/1.1(请求采用的协议和版本号) Accept: */*(客户端能接收的资源类型) Accept-Language: en-us(客户端接收的语言类型) Connection: Keep-Alive(维护客户端和服务端的连接关系
2013-03-13 07:43:41
13817
原创 No instrumentation runner found for the launch, using android.test.
如果在进行android app测试的时候发现控制台:报:No instrumentation runner found for the launch, using android.test.,明明在AndroidManifest.xml中加入了 android:name="android.test.InstrumentationTestRunner"
2013-01-19 22:21:15
3530
原创 创建适配器时报:ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundExcepti
ERROR/AndroidRuntime(1703): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0是因为view的setText(),传入的不是字符串类型的基础数据类型,比如整数类型..虽然编译可以但是运行时会报错...比如amountView.setText
2013-01-19 19:18:09
3515
原创 red had 9 乱码问题解决方法
#vi /etc/sysconfig/i18n (利用vi编辑器修改配置文件i18n)将LC_ALL=POSIX写入i18n配置文件中
2013-01-13 12:33:16
566
原创 将red hat 9.0 的默认启动方式设为命令行启动
1.在命令行输入 vi /etc/inittab 回车2.i3.将id:5:initdefault修改为id:3:initdefault4.esc5.:6.wq回车重启即可....
2013-01-13 12:27:23
708
原创 ajax 获取不到servlet回应的xml 文本值
1. 试着在onreadyStates属性所关联的方法中加上var data=xmlHttp.responseXML;alert(data);目的是查看servlet是否有返回来的信息,确定js关联对了servlet2.如果有弹出类似---------------------------来自网页的消息---------------------------
2013-01-08 09:50:38
992
原创 MyEclipse8.6 安装aptana插件
我用的MyEclipse版本是8.6的1.下载aptana的features和plugins,文件125MB ,就不上传了, 要是需要的话可以邮箱2.在Program Files文件下建立以aptana命名的文件夹,放入features和plugins3.在..\MyEclipse-8.6\dropins文件夹下建立以aptana.link命名的文件,文件的内容(path=刚才建立的a
2013-01-06 10:50:25
1707
原创 org.apache.jasper.JasperException: javax.el.ELException: Error reading 'name' on type com.ht.domain.
在添加Hibernate.initialize(emp.getDepartment()); 后报:org.apache.jasper.JasperException: javax.el.ELException: Error reading 'name' on type com.ht.domain.Department_$$_javassis错误解决方案:在many的一方的加上 not-
2013-01-02 22:01:13
11967
原创 整合ssh Hibernate one2many 报:org.springframework.beans.factory.BeanCreationException: Error creating b
department1.报:An association from the table employee refers to an unmapped class: com.ht.domain. 看下applicationContext.xml下 com/ht/domain/Employee.hbm.xml
2013-01-02 19:40:57
1052
原创 报错:The prefix "context" for element "context:annotation-config" is not bound.
spring启用注解扫描机制:加上这句话报:1.The prefix "context" for element "context:annotation-config" is not bound.看看spring头部属性是否缺少: xmlns:context="http://www.springframework.org/schema/context"2.如果报:The
2013-01-02 18:59:41
20521
原创 struts源码下载地址
struts 源码下载地址http://archive.apache.org/dist/struts/source/ 1--2都有,好东西 记下
2013-01-02 10:33:10
2080
原创 spring中配置hibernate3.X 二级缓存
前提:导入ehcache-1.2.3.jar包1.在ApplicationContext.xml中添加粗体部分 org.hibernate.dialect.OracleDialect update true
2013-01-02 09:58:54
2453
原创 hibernate主键增长策略
1.increment 适合所有数据库,不要用在多进程,主键类型是整数 select max(id) from student2.identity 支持DB2、mysql、sql server 、Sybase 主键类型是整数 但不适用oracle3.sequence 适用于DB2、Oracle等 主键类型也是整数类型4.nativ
2012-12-23 16:49:11
1073
原创 Hibernate 一级缓存和二级缓存的注意事项
1.什么操作会向session缓存中存放数据 save update saveOrUpdate load get list iterate lock2.什么操作会从一级缓存中取数据(先向缓存中取,如果没有,再像数据库中发请求) get load list和uniqueResult不会从缓存中取数据list是只存不取
2012-12-23 11:12:00
598
原创 Hibernate如何解决懒加载
1.明确初始化在session还没有关闭时访问一次getSet()方法,强制访问数据库或者Hibernate.initialize(XX)2.openSessionInView 这个需要过滤器配合使用,也就是扩大session的范围FilterSession session = null;Transaction tx = null;try {session = H
2012-12-19 17:37:37
1553
转载 MD5 算法
import java.security.MessageDigest;public class MD5_Test { public final static String MD5(String s) { char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9','A', 'B', 'C',
2012-12-14 17:21:08
563
原创 配置hibernate:org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch updat
今天配置hibernate时报:org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch updateCaused by: java.sql.BatchUpdateException: ORA-00001: 违反唯一约束条件 (SCOTT.SYS_C005635)这...
2012-12-05 16:03:20
3585
1
原创 配置hibernate:Caused by: org.hibernate.MappingException: persistent class not known: com.ht.domain.
今天在配置hibernate映射文件时报:Caused by: org.hibernate.MappingException: persistent class not known: com.ht.domain.IDCard错误,上网查找,没有找到错误,然后看映射文件突然发现package="com.ht.domain">..... packge缺失,添加上,果然,
2012-12-05 15:40:51
4449
原创 hibernate.cfg.xml *.hbm.xml 无自动提示 MyEclipse
这是因为在Myeclipe中没有关联相应的dtd文件的原因解决方法:在\hibernate-distribution-3.3.1.GA\project\core\src\main\resources\org\hibernate目录下面找到:hibernate-configuration-3.0.dtd 和 hibernate-mapping-3.0.dtd 文件如果没有:可以去
2012-12-05 09:57:24
3252
原创 Myeclipse : 修改jsp模板
我的MyEclipse的版本是8.6的...依照路径找到...\Common\plugins\com.genuitec.eclipse.wizards_8.6.0.me201007140905.jar要是您的是8.5的话,搜:com.genuitec.eclipse.wizard*.jar 这个关键词就行了.复制解压,找到templates\jsp\Jsp.vtl 修改为:
2012-12-05 09:25:25
743
原创 MyEclipse 修改servlet模板
我的MyEclipse的版本是8.6的...依照路径找到...\Common\plugins\com.genuitec.eclipse.wizards_8.6.0.me201007140905.jar找到templates打开后就能找到Servlet.java了.要是您的是8.5以上的版本的话搜:com.genuitec.eclipse.wizard*.jar 这个
2012-12-05 09:21:48
3511
原创 配置Hibernate
配置Hibernate WARN No appenders could be found for logger解决方法:在src下建立一个 log4j.properties文件添加内容### direct log messages to stdout ###log4j.appender.stdout=org.apache.log4j.ConsoleAppender
2012-12-04 21:33:52
757
原创 学Hibernate报:Exception in thread "main" org.hibernate.LazyInitializationException: could not initiali
异常:Exception in thread "main" org.hibernate.LazyInitializationException: could not initialize proxy - no Session这是因为session已经关闭。java:代码String hql = "from Studcourse where course.cid=?";Str
2012-12-04 14:30:09
5552
原创 MyEclipse8.6 Io 异常: The Network Adapter could not establish the connection
在配置hibernate时,出现Error while performing database login with the XXX driver:Io 异常: The Network Adapter could not establish the connection错误;上网查找解决方法,发现要修改MyEclipse8.6中的eclipse.ini文件的langua
2012-12-01 17:41:45
2347
原创 at oException:racle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1401)
调用有返回值的存储过程时报:Exception in thread "main" java.lang.NullPointerExceptionat oracle.jdbc.driver.T4CResultSetAccessor.getCursor(T4CResultSetAccessor.java:309)at oracle.jdbc.driver.ResultSetAccesso
2012-11-28 00:08:04
2343
原创 struts2严重: Exception starting filter struts2 Unable to load configuration
嘿嘿...中奖了吧?看下struts.xml的配置注意:extends="struts-default">/WEB-INF/message.jsp看看红颜色的,给了没...
2012-11-25 22:04:32
768
原创 严重: The web application [/native] created a ThreadLocal with key of type
严重: The web application [/native] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@56ff18]) and a value
2012-11-25 17:14:29
18716
转载 struts2提供的校验器
系统提供的校验器如下:required (必填校验器,要求field的值不能为null)requiredstring (必填字符串校验器,要求field的值不能为null,并且长度大于0,默认情况下会对字符串去前后空格)stringlength(字符串长度校验器,要求field的值必须在指定的范围内,否则校验失败,minLength参数指定最小长度,maxLength参数指定最大长度,
2012-11-25 14:38:21
818
原创 jsp报The Struts dispatcher cannot be found. This is usually caused by using Struts tags without
学习struts2时候,在jsp中使用到回显错误信息报The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has pass
2012-11-25 10:55:29
705
黑马入学测试及答案
2014-06-23
struts-2官网下载jar包和例子
2013-05-15
jQuery_DatePicker
2013-05-12
易游邮件服务器
2013-04-21
json.rar json.rar
2013-01-08
hib-mapping-3.0.dtd
2012-12-05
hibernate.co.dtd
2012-12-05
DOM 苏昱.CHM文档
2012-09-25
Myeclipse插件
2012-09-23
黑马入学试题及答案
2014-06-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人