博客园 - 樊凯
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=35656
2016-07-19T07:15:00Z
樊凯
https://www.cnblogs.com/kay/
feed.cnblogs.com
https://www.cnblogs.com/kay/archive/2009/09/25/1573815.html
Weblogic10.3客户端jar文件 - 樊凯
在Weblogic10.3这个版本中并没有提供客户端jar文件供我们使用,所以我们需要自己去打包客户端jar文件,打包步骤如下: 1. 假设Weblogic安装在C盘的根目录下,在MS-DOS下将路径切换到C:\Oracle\Middleware\wlserver_10.3\server\lib目录下。 然后运行java –jar ..\..\..\modules\com.bea.core.j...
2009-09-25T02:23:00Z
2009-09-25T02:23:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】在Weblogic10.3这个版本中并没有提供客户端jar文件供我们使用,所以我们需要自己去打包客户端jar文件,打包步骤如下: 1. 假设Weblogic安装在C盘的根目录下,在MS-DOS下将路径切换到C:\Oracle\Middleware\wlserver_10.3\server\lib目录下。 然后运行java –jar ..\..\..\modules\com.bea.core.j... <a href="https://www.cnblogs.com/kay/archive/2009/09/25/1573815.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/09/19/1570268.html
PHP5操作MySQL数据库 - 樊凯
1. 建立数据库连接 <?php $mysqli=newmysqli("localhost","root","","mydb"); ?> 建立一个数据库连接需要四个参数,分别为数据库地址、数据库访问用户名、数据库访问密码、数据库名称。除了使用上面的mysqli对象的构造方法建立数据库连接外,还可以调用其connect方法建立数据库的连接。 <?php $mysqli=newmys...
2009-09-19T15:39:00Z
2009-09-19T15:39:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】1. 建立数据库连接 <?php $mysqli=newmysqli("localhost","root","","mydb"); ?> 建立一个数据库连接需要四个参数,分别为数据库地址、数据库访问用户名、数据库访问密码、数据库名称。除了使用上面的mysqli对象的构造方法建立数据库连接外,还可以调用其connect方法建立数据库的连接。 <?php $mysqli=newmys... <a href="https://www.cnblogs.com/kay/archive/2009/09/19/1570268.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/09/15/1566805.html
Struts2拦截器 - 樊凯
拦截器(interceptor)是Struts2最强大的特性之一,拦截器可以让你在Action和result被执行之前或之后进行一些处理。同时,拦截器也可以让你将通用的代码模块化并作为可重用的类。Struts2中的很多特性都是由拦截器来完成的。例如params拦截器将HTTP请求中的参数解析出来,并设置为Action的属性。servlet-config拦截器直接将HTTP请求中的HttpServl...
2009-09-15T02:42:00Z
2009-09-15T02:42:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】拦截器(interceptor)是Struts2最强大的特性之一,拦截器可以让你在Action和result被执行之前或之后进行一些处理。同时,拦截器也可以让你将通用的代码模块化并作为可重用的类。Struts2中的很多特性都是由拦截器来完成的。例如params拦截器将HTTP请求中的参数解析出来,并设置为Action的属性。servlet-config拦截器直接将HTTP请求中的HttpServl... <a href="https://www.cnblogs.com/kay/archive/2009/09/15/1566805.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/09/13/1566034.html
使用AppServ快速建立php运行环境 - 樊凯
  对于像我一样的初学php的人来说,php的运行环境的搭建一定是一个难关。那么我们使用AppServ这样一个集成环境来帮助我们快速搭建php的运行环境。AppSer中包含了Apache服...
2009-09-13T07:44:00Z
2009-09-13T07:44:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】  对于像我一样的初学php的人来说,php的运行环境的搭建一定是一个难关。那么我们使用AppServ这样一个集成环境来帮助我们快速搭建php的运行环境。AppSer中包含了Apache服... <a href="https://www.cnblogs.com/kay/archive/2009/09/13/1566034.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/09/13/1565865.html
Hibernate缓存 - 樊凯
在Hibernate中提供了两种缓存来提升程序的性能,分别为一级缓存和二级缓存,也称为内置缓存和外置缓存。 一级缓存在Session中实现,当Session关闭时一级缓存就失效了。我们来看一个使用了来一级缓存的示例: Session session = factory.openSession();Student stu = (Student) session.get(Student.class, ...
2009-09-13T00:48:00Z
2009-09-13T00:48:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】在Hibernate中提供了两种缓存来提升程序的性能,分别为一级缓存和二级缓存,也称为内置缓存和外置缓存。 一级缓存在Session中实现,当Session关闭时一级缓存就失效了。我们来看一个使用了来一级缓存的示例: Session session = factory.openSession();Student stu = (Student) session.get(Student.class, ... <a href="https://www.cnblogs.com/kay/archive/2009/09/13/1565865.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/07/29/1533871.html
一个关于SpringSecurity很好的参考文档 - 樊凯
链接地址如下: http://family168.com/oa/springsecurity/html/index.html 大家可以学习完Spring2.x后研究下!
2009-07-29T03:12:00Z
2009-07-29T03:12:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】链接地址如下: http://family168.com/oa/springsecurity/html/index.html 大家可以学习完Spring2.x后研究下! <a href="https://www.cnblogs.com/kay/archive/2009/07/29/1533871.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/07/07/1518278.html
Struts2.1.6 + Spring2.5+Hibernate3.2整合 - 樊凯
首先来看需要的jar包: 在web.xml中的配置: <?xml version="1.0" encoding="UTF-8"?><web-...
2009-07-07T03:44:00Z
2009-07-07T03:44:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】首先来看需要的jar包: 在web.xml中的配置: <?xml version="1.0" encoding="UTF-8"?><web-... <a href="https://www.cnblogs.com/kay/archive/2009/07/07/1518278.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/06/17/1505155.html
JQuery和Struts实现Ajax文件上传 - 樊凯
首先说下使用的框架和插件: struts1.3   jQuery1.3   ajaxupload.3.2.js(一个JQuery的插件,实现Ajax上传的效果...
2009-06-17T07:55:00Z
2009-06-17T07:55:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】首先说下使用的框架和插件: struts1.3   jQuery1.3   ajaxupload.3.2.js(一个JQuery的插件,实现Ajax上传的效果... <a href="https://www.cnblogs.com/kay/archive/2009/06/17/1505155.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/06/16/1504240.html
struts1.x+spring2.5+JPA(hibernate)整合 - 樊凯
1.在web.xml中加入如下配置 <!-- 配置Struts ActionServlet --> <servlet> <servlet-name>ActionServlet</servlet-name> <servlet-class> org.apache.struts.action.ActionServlet </se...
2009-06-16T05:15:00Z
2009-06-16T05:15:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】1.在web.xml中加入如下配置 <!-- 配置Struts ActionServlet --> <servlet> <servlet-name>ActionServlet</servlet-name> <servlet-class> org.apache.struts.action.ActionServlet </se... <a href="https://www.cnblogs.com/kay/archive/2009/06/16/1504240.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/05/21/1486535.html
使用Apache的commons-codes加密 - 樊凯
    /**      * MD5加密      * @param password &...
2009-05-21T09:56:00Z
2009-05-21T09:56:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】    /**      * MD5加密      * @param password &... <a href="https://www.cnblogs.com/kay/archive/2009/05/21/1486535.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/05/14/1456697.html
Spring备忘(涵盖Spring2.5) - 樊凯
在Spring2.5中使用Annotation注解进行注入: 在使用注解进行注入的时候需要设置配置文件的schema: <?xml version="1.0" encodi...
2009-05-14T04:02:00Z
2009-05-14T04:02:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】在Spring2.5中使用Annotation注解进行注入: 在使用注解进行注入的时候需要设置配置文件的schema: <?xml version="1.0" encodi... <a href="https://www.cnblogs.com/kay/archive/2009/05/14/1456697.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/05/14/1456695.html
Spring备忘四(涵盖Spring2.5) - 樊凯
依赖注入(IOC DI)依赖注入的两种方式:1. set注入Spring要求使用set注入方式的时候,Bean需要提供一个无参数的构造方法。并提供一个属性的setter方法。例如: package com.kay.bean; public class UserServices { private UserBean ub; public void setUb(UserBean ub) { this....
2009-05-14T04:00:00Z
2009-05-14T04:00:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】依赖注入(IOC DI)依赖注入的两种方式:1. set注入Spring要求使用set注入方式的时候,Bean需要提供一个无参数的构造方法。并提供一个属性的setter方法。例如: package com.kay.bean; public class UserServices { private UserBean ub; public void setUb(UserBean ub) { this.... <a href="https://www.cnblogs.com/kay/archive/2009/05/14/1456695.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/05/11/1454356.html
Sping备忘三(涵盖Spring2.5) - 樊凯
bean的作用域 作用域 描述 singleton 在每个Spring IoC容器中一个bean定义对应一个对象实例。 prototype 一个bean定义对应多个对象实例。 request 在一次H...
2009-05-11T10:41:00Z
2009-05-11T10:41:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】bean的作用域 作用域 描述 singleton 在每个Spring IoC容器中一个bean定义对应一个对象实例。 prototype 一个bean定义对应多个对象实例。 request 在一次H... <a href="https://www.cnblogs.com/kay/archive/2009/05/11/1454356.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/05/11/1454355.html
Spring备忘二(涵盖Spring2.5) - 樊凯
通过alias节点为bean指定一个别名在spring中通过alias节点可以为一个bean指定别名: <bean name="userDao,user" class="com.kay.dao.impl.UserDAOImpl"></bean> <alias name="userDao" alias="toUserDao"/> 那么在获取该bean的时候,通过u...
2009-05-11T10:39:00Z
2009-05-11T10:39:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】通过alias节点为bean指定一个别名在spring中通过alias节点可以为一个bean指定别名: <bean name="userDao,user" class="com.kay.dao.impl.UserDAOImpl"></bean> <alias name="userDao" alias="toUserDao"/> 那么在获取该bean的时候,通过u... <a href="https://www.cnblogs.com/kay/archive/2009/05/11/1454355.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/05/11/1454353.html
Spring备忘一(涵盖Spring2.5) - 樊凯
BeanFactory & ApplicationContext 在spring中容器分为两类: n BeanFactory n ApplicationContext BeanFact...
2009-05-11T10:38:00Z
2009-05-11T10:38:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】BeanFactory & ApplicationContext 在spring中容器分为两类: n BeanFactory n ApplicationContext BeanFact... <a href="https://www.cnblogs.com/kay/archive/2009/05/11/1454353.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/04/28/1444964.html
ubuntu遇到的错误 - 樊凯
错误1:在运行新立得软件包管理器的时候,报如下错误:E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. E: _cache->open() failed, please report.解决方案:在终端中输入:sudo dpkg --configure -a 进...
2009-04-27T18:05:00Z
2009-04-27T18:05:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】错误1:在运行新立得软件包管理器的时候,报如下错误:E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem. E: _cache->open() failed, please report.解决方案:在终端中输入:sudo dpkg --configure -a 进... <a href="https://www.cnblogs.com/kay/archive/2009/04/28/1444964.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/04/28/1444962.html
Ubuntu命令(更新中) - 樊凯
使用ADSL拨号:sudo pppoeconf安装nvidia显卡驱动:ubuntu默认使用的受限驱动,无法开启3D等特效,所以必须安装Nvidia的官方驱动,到www.nvidia.com下载需要的驱动,下载好的驱动为.run文件,该类型文件必须使用sh命令进行编译后再执行。步骤如下:1。在系统中启用root用户;2。重启系统后在系统登录的窗口中按下ctrl+alt+F1,使用文本界面进行登录;...
2009-04-27T17:55:00Z
2009-04-27T17:55:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】使用ADSL拨号:sudo pppoeconf安装nvidia显卡驱动:ubuntu默认使用的受限驱动,无法开启3D等特效,所以必须安装Nvidia的官方驱动,到www.nvidia.com下载需要的驱动,下载好的驱动为.run文件,该类型文件必须使用sh命令进行编译后再执行。步骤如下:1。在系统中启用root用户;2。重启系统后在系统登录的窗口中按下ctrl+alt+F1,使用文本界面进行登录;... <a href="https://www.cnblogs.com/kay/archive/2009/04/28/1444962.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/04/14/1435496.html
异常java.lang.UnsupportedClassVersionError: Bad version number in .class file - 樊凯
昨天在中心建立了一个非常简单的struts1.x的工程,但是今天到家里怎么都打不开,一直报这样的错误: 严重: Begin event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.re...
2009-04-14T03:19:00Z
2009-04-14T03:19:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】昨天在中心建立了一个非常简单的struts1.x的工程,但是今天到家里怎么都打不开,一直报这样的错误: 严重: Begin event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.re... <a href="https://www.cnblogs.com/kay/archive/2009/04/14/1435496.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/03/22/1418887.html
根据ResultSetMetaData对象动态创建pojo或其集合(JDBC) - 樊凯
数据库脚本:[代码]由于没有映射文件,所以要求pojo中的属性必须和数据表中的列名相同:[代码]获得唯一的pojo方法:[代码]获得集合方法:[代码]测试:[代码]
2009-03-22T04:02:00Z
2009-03-22T04:02:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】数据库脚本:[代码]由于没有映射文件,所以要求pojo中的属性必须和数据表中的列名相同:[代码]获得唯一的pojo方法:[代码]获得集合方法:[代码]测试:[代码] <a href="https://www.cnblogs.com/kay/archive/2009/03/22/1418887.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/kay/archive/2009/02/22/1396091.html
天生我牛必有用 - 樊凯
  今天两个班的同学一起考试,希望一切顺利!
2009-02-22T14:29:00Z
2009-02-22T14:29:00Z
樊凯
https://www.cnblogs.com/kay/
【摘要】  今天两个班的同学一起考试,希望一切顺利! <a href="https://www.cnblogs.com/kay/archive/2009/02/22/1396091.html" target="_blank">阅读全文</a>