cd/ 切换到根目录 ls 当前目录列表 ps -ef|grep tomcat       查看tomcat线程信息 kill 4667 4668     关闭4667 4668端口 /etc/init.d/tomcat start   启动tomcat
  • 15:44
  • 浏览 (18)
  • 评论 (0)
1.遍历Map <s:iterator value="#request.map" status="idx"> <tr> <td ><input type="checkbox" id="<s:property value="#idx.index"/>" value="checkbox" onclick="checkParentBox('<s:property value="#idx.index"/>',<s:property value="value.size"/>);"/></td> <td >&l ...
  • 11:52
  • 浏览 (110)
  • 评论 (0)
项目中需要用到批量添加,考虑到新能问题用jdbc实现. 记录下来,以后会用. public void createRolePermissionBySql(final String roleId,final String[] permIds){ getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { if(permI ...
看了下struts2的访问拦截器的机制,自己写了段类似的代码 public interface Test { public String test(TestInvocation invocation); } public class Test1 implements Test { @Override public String test(TestInvocation invocation) { // TODO Auto-generated method stub System.out.println("hello!in test1"); ...
java 代码 </bean id="baseSqlMapClient" scope="singleton"       class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">        <property name="configLoca ...
几个插件 a.Easy Explore 1.0.1              //直接跳转到文件目录 b.jode decompiler plugin 1.0.3    //反编译插件 c.abator code generator for ibatis 1.00    //ibatis代码生成器,可以生成sql以及dto,dao文件  d.spring IDE  1.3.6   / ...
2007-06-06

someTip

1.eclispe 缺省 VM 参数    -Djbo.debugoutput=console -Djbo.jdbc.trace=true -Djbo.logging.show.level=true 2.jar cvf husttools.jar  cn  把cn文件下的所有文件打包到husttools.jar中
2007-04-19

someSql

1.oracle中查找列数select count(*) from USER_TAB_COLUMNS where table_name ='TABLE_NAME';//表名要大写 2.创建已经存在的表create table xxxx as select * from yyyy; 3.两张关联表的统计 select  r1.apply_id,r1.money_true,r2.money_return  from (select    ba.apply_id, sum(money_true)    as mon ...
2007-03-12

someJS

java 代码 1.遍历table    var tableObj =document.getElementById("submenu2");             if(tableObj!=null&&tableObj.rows.length>1){          & ...
java 代码 P.java public class P {       private String[] a={""};;          public String[] getA() {         return a; &nb ...
  • 16:57
  • 浏览 (411)
  • 评论 (0)
leisure
搜索本博客
最近加入圈子
存档
最新评论