`
hollowinhart
  • 浏览: 124418 次
  • 性别: Icon_minigender_1
  • 来自: 太原
社区版块
存档分类
最新评论
文章列表

sql的递归查询

 
表中pid,id两个字段 select pid,id from 表名 start with id= 1102 connect by prior pid=id select pid,id from 表名 start with id= 1102 connect by prior id=pid 查询出两种顺序的树

统计文件个数

1.find 路径 -type f|wc -l 2.find 路径 -type f > tmp    files=0    while read line    do        files=` expr $files + 1 `    done < tmp    echo $files  
class xxx implements MessageListener{  public void onMessage(Message message)  {    ObjectMessage om = (ObjectMessage)message;    destinationName = om.getJMSDestination().toString();    IMsgReq msgReq = (IMsgReq)om.getObject();      ...  } }
TYPE TAB_xx IS TABLE OF T_xx%ROWTYPE INDEX BY BINARY_INTEGER; v_xx TAB_xx;
spring中配置 <util:properties id="属性文件定义一个id" location="classpath:config/xxx.properties"/>   java代码中使用 @Value("#{属性文件定义的id[notitask_sipsubscribeagenotify]}")private int recordNum = 1000;   属性文件中配置 notitask_sipsubscribeagenotify = 1000

操作系统命令

 
df -v  磁盘使用 df -k /路径 磁盘使用 fdisk -l 分区查看
.cshrc 中配置环境变量setenv 变量名 变量值setenv JAVA_HOME /home/xxx/jdk1.6.0_21快捷键alias mycd  "cd ${xxpath}/bin"
启动Eclipse/MyEclipse后, 打开"Window -> Preferences -> General -> Startup and Shutdown->Workspaces" 在Recent workspaces中会列出所有使用过的work spaces信息,Remove掉不想要的,上面有个数据项,可以选择保存多个少历史信息。
启动Eclipse/MyEclipse后, 打开"Window -> Preferences -> General -> Startup and Shutdown->Workspaces",   然后勾选 "Prompt for workspace on startup";  
windows运行窗口的运行记录保存在注册表中的地方 HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU
bash:MyName=abc;export MyName csh:setenv MyName abc 设置环境变量的区别要看是哪种shell
import junit.extensions.PrivilegedAccessor;     // 调用的方法名称及参数列表信息 String methodSign= "checkPwd(java.lang.String,java.lang.Boolean,PwdInfo)";   // 调用,依次为当前实例,所调实例的方法,参数列表  Object result = PrivilegedAccessor.invokeMethod(bean, methodSign, new Object[]{"", Boolean.TRUE, pwdInfo}) ...
alias f "find . -name '*' | xargs grep -i" 将上述语句贴入 .cshrc中 source .cshrc

crontab 重启

/etc/init.d/cron restart
log4j:WARN No appenders could be found for logger (org.springframework.test.annotation.ProfileValueUtils).log4j:WARN Please initialize the log4j system properly.这个问题主要是第二句,提示说log4j的属性文件没有初始化,言外之意是这个文件不存在或损坏了,总之log4j没有初始化。
Global site tag (gtag.js) - Google Analytics