引入cglib-nodep-2.1_3.ja包cglib产生的代理类是目标类的子类定义接口,让切面都继承它,方便加入到动态代理方法
的那个类中使用在SalaryInterceptor类中使用private List interceptors;1 package
cn.itcast.cglibprox...
分类:
其他好文 时间:
2014-06-16 08:20:10
阅读次数:
216
当连接的数据出现失败时,出现数据库别名仍然存在,但还是要用这个别名重新建立连接在windows客户端,用输入db2cmd输入c:\Users\yexuxia>db2
list db directory显示数据库别名、数据库名称、节点名C:\Users\yexuxia>db2 list node di...
分类:
数据库 时间:
2014-06-16 07:09:10
阅读次数:
287
使用[] + for语句是解析列表而使用() +
for语句是产生生成器实例代码如下:alist = [1, 2, 3, 4, 5]another_list = [i for i in alist]print
another_lista_generator = (i for i in alist)p...
分类:
编程语言 时间:
2014-06-16 06:30:17
阅读次数:
204
Insertion Sort ListSort a linked list using
insertion sort. leetcode
subject思路:标准的插入排序。考察一下链表的操作。对链表进行插入排序的正确方法是:新建一个头节点,遍历原来的链表,对原链表的每个节点找到新链表中适合插入位置...
分类:
其他好文 时间:
2014-06-16 00:34:07
阅读次数:
364
表(list)是常见的数据结构。从数学上来说,表是一个有序的元素集合。在C语言的内存中,表储存为分散的节点(node)。每个节点包含有一个元素,以及一个指向下一个(或者上一个)元素的指针。如下图所示:表:
橙色储存数据,蓝色储存指针图中的表中有四个节点。第一个节点是头节点(head node),这个...
分类:
其他好文 时间:
2014-06-16 00:20:12
阅读次数:
308
Swap Nodes in Pairs:Given a linked list, swap every
two adjacent nodes and return its head.For example,Given1->2->3->4, you
should return the list as2...
分类:
其他好文 时间:
2014-06-13 17:04:27
阅读次数:
180
Rotate ListGiven a list, rotate the list to the
right bykplaces, wherekis non-negative.For
example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3-...
分类:
其他好文 时间:
2014-06-13 16:39:53
阅读次数:
307
package 单例模式; import java.awt.List;import
java.util.ArrayList;import java.util.Arrays; public class Country implements
Comparable{ int jin; int yin; i...
分类:
其他好文 时间:
2014-06-13 15:38:12
阅读次数:
183
这个比较简单,用栈、递归、倒转链表都可以实现,不再过多解释。代码使用递归实现 1
#include 2 #include 3 #include 4 typedef struct Node 5 { 6 int data; 7 Node*
next; 8 }Node, *List;...
分类:
其他好文 时间:
2014-06-13 15:25:59
阅读次数:
194
Linked List Cycle:Given a linked list, determine if
it has a cycle in it.Follow up:Can you solve it without using extra
space?解题分析:大致思想就是设置两个指针,一个指针每次...
分类:
其他好文 时间:
2014-06-13 14:41:54
阅读次数:
238