- 博客(8)
- 资源 (3)
- 收藏
- 关注
转载 linux 定时重启 tomcat
/usr/local/tomcat-6.0.35/ 为tomcat安装目录。 1、编写脚本: [html] view plaincopyprint? #!/bin/sh echo ".......restarting the tomcat-6.0.35....." pid=`ps -ef | grep tomcat-6.0.35 | gr
2014-11-16 15:52:49
335
原创 linux下配置tomcat开机自启动
#!/bin/sh # # cription: Auto-starts tomcat # processname: tomcat export JAVA_HOME=/usr/lib/java/jdk1.7.0_71 case $1 in start) sh /usr/local/tomcat/bin/startup.sh ;; stop) sh /usr/local/tomcat/bin/sh
2014-11-13 12:49:24
519
转载 关于a++和++a
public static void main(String[] args){ int a = 1; a++;//后++,先使用a的值然后增加 System.out.println(a); ++a;//前++, System.out.println(a); int b; a = 1; b = a++;//两个运算,先执行++运算,然后执行赋值运算 //++运算1)先取a的值1作为
2014-07-27 17:30:41
446
转载 交换两个变量的值 不使用第三个变量
public static void main(String[] args){ f1(20,10); f2(30,10); f3(44,12); } public static void f1(int a,int b){ a = a - b; //求出 ab之间的距离放在a上 b = a + b; //求出a到原点的距离放在b上 a = b - a; //求出b到原
2014-07-27 17:19:35
437
原创 冒泡排序
public static void f(int arr[]){ int t; for(int i=0;i for(int j=i+1;j if(arr[i] > arr[j]){ t = arr[i]; arr[i] = arr[j]; arr[j] = t; } } } }
2014-07-27 16:28:02
293
转载 Eclipse 启动报错Failed to create the Java Virtual Machine的解决方法,三种
今天eclipse启动报错,如下: 对于这种情况,原因是计算机的内存不足。可以通过修改eclipse的配置文件来解决这种情况~ 两种方法: 1、修改初始堆大小,网上普遍的解决方法 1)找到eclipse根目录下的配置文件E:\soft\eclipse\eclipse.ini 2)修改eclipse
2014-07-27 15:37:29
452
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人