自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (1)
  • 问答 (2)
  • 收藏
  • 关注

原创 Spring整合JPA

[code="xml"] ...

2015-11-03 15:36:53 108

原创 Spring 2.5整合DWR 2.06

[color=red]方法一:各种配置如下[/color][code="web.xml"] dwr-invoker org.directwebremoting.servlet.DwrServlet debug true dwr-invoker /dwr/*[/code][code="DwrService.java"]pac...

2011-07-10 15:04:09 96

原创 DWR出现的A request has been denied as a potential CSRF attack解决办法

学习DWR的时候,用的是DWR2.0.6版本和火狐浏览器,在做官方的Hello world 的时候,按照文档,做的如下配置:[code="web.xml"] dwr-invoker org.directwebremoting.servlet.DwrServlet debug true ...

2011-07-08 14:02:26 313

原创 Spring 2.5整合iBATIS 2.3并使用Spring的声明式事务管理

Spring 2.5整合iBATIS 2.3的核心配置文件beans.xml如下:[code="beans.xml"] classpath:SqlMapConfig.xml ...

2011-07-07 09:12:36 142

原创 Spring报cvc-complex-type.2.3错

将Spring与iBATIS整合,在运行Demo时报发下错误:[code="exception"]cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only.[/code]Google了好大时间,在网上发...

2011-07-07 00:43:49 225

原创 iBATIS:java.sql.SQLException: ORA-00911: invalid character

项目用到iBATIS,编码期间,程序报错,抛出异常:[code="Exception"]java.sql.SQLException: ORA-00911: invalid character[/code]检查好长时间,终于找到问题的所在,令人吐血的是,这又是一个分号引发的异常。具体如下:[code="sql"] SELECT i.ENT_NAME AS entName,...

2011-07-04 22:11:54 132

原创 iBATIS,一个空格引发的NestedSQLException异常

近日,做项目用到了iBATIS,coding期间,遇到一个问题,iBATIS抛出NestedSQLException异常,捣腾好长时间,终于找到问题所在,令人吐血的是:这是“一个空格引发的异常”。具体如下:[code="sql"] select * from orders …… ……[/code] [color=red]*号与from之间的空格,原本是半角的...

2011-07-03 22:32:19 1623

原创 dom4j格式化xml文件

[b]dom4j格式xml并输出为*.xml文件[/b][code="java"]public static void main(String[] args) { Document document = DocumentHelper.createDocument(); Element employees=document.addElement("emplo...

2011-07-03 21:03:27 134

原创 显示iBATIS执行的SQL语句的方法

使用log4j,修改log4j的配置文件,配置如下内容:[code="log4j.properties"]# Set root logger level to DEBUG and its only appender to CONSOLE.log4j.rootLogger=WARN,CONSOLE# CONSOLElog4j.appender.CONSOLE=org.apac...

2011-07-02 00:03:19 224

原创 JavaScript 编码转换

JavaScript中的编码方法:[b]escape() 方法:[/b] MSDN JScript Reference中如是说: The escape method returns a string value (in Unicode format) that contains the contents of [the argument]. All sp...

2011-07-01 21:23:28 150

Aptana支持Firefox

让Aptana支持Firefox,可在代码编辑区域直接通过Firefox预览

2013-05-30

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除