会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
很有意思
博客园
首页
新随笔
联系
订阅
管理
2013年4月2日
PostgreSQL 使用array_to_string将查询行进行字符串连接
摘要: converting rows into a stringSELECT array_to_string(array( SELECT cn_name FROM t_city ),'/')"北京/上海/重庆"
阅读全文
posted @ 2013-04-02 08:54 现役程序员
阅读(3837)
评论(1)
推荐(0)
2012年11月14日
Spring mvc + hibernate dbcp长时间访问时Could not open Hibernate Session for transaction
摘要: Could not open Hibernate Session for transaction; nested exception is org.hibernate.TransactionException: JDBC begin failed
阅读全文
posted @ 2012-11-14 12:19 现役程序员
阅读(1313)
评论(0)
推荐(0)
2012年11月13日
tomcat windows环境下mine类型区分大小写
摘要: windows 2003 环境下配置apahce 和tomcat ,上传图片文件最后不能显示,发现图片文件后缀为大写的JPG,tomcat不能正确显示。修改tomcat目录下web.xml文件,加入:<mime-mapping> <extension>JPG</extension> <mime-type>image/jpeg</mime-type> </mime-mapping>可以正确显示。但最好是上传文件操作中,将文件后缀都改为小写。
阅读全文
posted @ 2012-11-13 23:45 现役程序员
阅读(419)
评论(0)
推荐(0)
2012年10月24日
jQuery mouseover mouseout事件在IE下闪烁
摘要: 1$("#menu1").bind("mouseover",function(){$("#menu1").attr("class","about_menu1");$("#mbtn_menu2").css("display","block")});2$("#menu1").bind("mouseout",function(){$("#menu1").attr("clas
阅读全文
posted @ 2012-10-24 17:58 现役程序员
阅读(1177)
评论(0)
推荐(0)
2012年10月17日
去掉a标签的虚框
摘要: a标签被点击后,默认是会出现一圈虚框的,去掉虚框:<style type="text/css">a{outline:none} /* for firefox */</style><a href="#" hidefocus>test</a> <!-- for ie -->
阅读全文
posted @ 2012-10-17 14:30 现役程序员
阅读(1144)
评论(0)
推荐(0)
2012年9月18日
javascript数组[摘]
摘要: 1、数组的创建var arrayObj = new Array(); //创建一个数组var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限,是长度var arrayObj = new Array([element0[, element1[, ...[, elementN]]]]); 创建一个数组并赋值 第二种方法创建数组指定了长度,但实际上所有情况下数组都是变长的,也就是说即使指定了长度为5,仍然可以将元素存储在规定长度以外的,注意:这时长度会随之改变。2、数组的元素的访问var testGetArrValue=arrayObj[1];
阅读全文
posted @ 2012-09-18 15:21 现役程序员
阅读(154)
评论(0)
推荐(0)
JavaScript 深度克隆JSON 对象
摘要: 1function clone(jsonObj){ 2 var buf; 3 if (jsonObj instanceof Array){ 4 buf=[]; 5 var i=jsonObj.length; 6 while (i--){ 7 buf[i]=clone(jsonObj[i]); 8 } 9 return buf; 10 }else if (jsonObj instanceof Object){ 11 buf={}; 12 for (var k in jsonObj){ 13 buf[k]=clone(jsonOb...
阅读全文
posted @ 2012-09-18 15:16 现役程序员
阅读(347)
评论(0)
推荐(1)
2012年2月13日
Struts2.2.3 dojo datetimepicker 标签中文乱码
摘要: 使用struts2.2.3的dojo datetimepicker控件时在九月份之后出现乱码,原因就是struts2-dojo-plugin-2.2.3.jar包下的dojo_zh.js或者dojo_zh-cn.js文件中的中文出现了乱码。解决方法:将jar包中org\apache\struts2\static\dojo\nls 文件下的dojo_zh.js或者dojo_zh-cn.js的乱码修正;在使用的jsp页面的sx:head标签加上locale=”zh” parseContent=”true”项1<sx:headdebug="true"2locale=&quo
阅读全文
posted @ 2012-02-13 21:32 现役程序员
阅读(633)
评论(0)
推荐(0)
2011年8月22日
FactoryBean —— Spring 提供的生产对象的工厂bean
摘要: 只需实现org.springframework.beans.factory.FactoryBean 接口public interface FactoryBean{//获取实例Object getObject() throws Exception;//获取实现相对的类型Class getObjectType();//表明获取的实例在容器中是否是singleton形式boolean isSingleton();}然后在spring 进行bean定义<bean id="objectId" class="...FactoryBean"/>需要注意的是
阅读全文
posted @ 2011-08-22 17:23 现役程序员
阅读(379)
评论(0)
推荐(0)
2011年8月19日
Axis2与整合Spring
摘要: web.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 5 http://java.sun.com/xml/ns/j2ee/we
阅读全文
posted @ 2011-08-19 11:55 现役程序员
阅读(4006)
评论(0)
推荐(0)
下一页
公告