使用注解进行简化aop的配置
切点是run方法
Car.java
package com.lubby.bean;
import org.springframework.stereotype.Component;
@Component("car")
public class Car {
public void run(){
System.out.println("Car i...
分类:
编程语言 时间:
2014-06-18 12:17:12
阅读次数:
269
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2014-06-18 11:41:52
阅读次数:
156
var status = new Enums.AffairsOperatingResult(); int typeNum = 0; int.TryParse(statusStr, out typeNum); try ...
分类:
其他好文 时间:
2014-06-18 11:14:40
阅读次数:
181
Person p=new Person("黄雄");
Map map=new HashMap();
map.put("p", p);
p.setName("黄熊熊");
Person p1=(Person)map.get("p");
System.out.println(p1.getName());
输出的是黄熊熊,因为map里面存的是引用!p.setName("黄熊熊...
分类:
其他好文 时间:
2014-06-17 22:55:10
阅读次数:
229
题目
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should rem...
分类:
其他好文 时间:
2014-06-17 22:15:52
阅读次数:
299
importjava.util.Calendar;
publicclassCalendarTest
{
/**
*Jun16,2014
*/
publicstaticvoidmain(String[]args)
{
//TODOAuto-generatedmethodstub
Calendarc=Calendar.getInstance();//默认由当前的日期和时间初始化
System.out.println(c.getClass().getNam..
分类:
其他好文 时间:
2014-06-17 18:34:21
阅读次数:
202
Use‘svnupdate’asmuchaspossible第一次发布的时候,会把工作目录下的所有文件清空,然后check-out一份完整的项目到工作目录下;以后更新的时候,不会判断已有文件是否在svn里存在。比如工作目录下的文件123在svn里不存在,那么更新的时候不会删除123。不会判断工作目录下的文..
分类:
其他好文 时间:
2014-06-17 18:07:43
阅读次数:
6157
importjava.text.DecimalFormat;
publicclassDecimalFormatTest
{
publicstaticvoidmain(String[]args){
DecimalFormatdf1,df2;
System.out.println("整数部分0/#的区别");
df1=newDecimalFormat("#.00");
df2=newDecimalFormat("0.00");
System.out.p..
分类:
其他好文 时间:
2014-06-17 17:32:15
阅读次数:
249
NFS实验一:将/root共享给192.168.10.20,可写、同步,允许客户机以root权限访问服务端[root@localhostServer]#vim/etc/exports/root192.168.10.250(rw,sync,no_root_squash)[root@localhostServer]#vim/etc/exports[root@localhostServer]#serviceportmaprestart停止portmap:..
分类:
其他好文 时间:
2014-06-17 16:58:39
阅读次数:
258
--创建过程,参数为sys_refcursor,为out型
create or replace procedure aabbsys_refcursor(o out sys_refcursor) is
begin
open o for select * from basplumain;
end;
---
--测试过程,使用aabbsys_refcursor传出的值
create or repla...
分类:
其他好文 时间:
2014-06-17 16:04:12
阅读次数:
180