- 博客(9)
- 收藏
- 关注
原创 Linux Shell脚本实现根据进程名杀死进程
#!/bin/sh#根据进程名杀死进程if [ $# -lt 1 ]then echo "缺少参数:procedure_name" exit 1fi PROCESS=`ps -ef|grep $1|grep -v grep|grep -v PPID|awk '{ print $2}'`for i in $PROCESSdo echo "Kill the $1 proce
2015-07-23 15:07:09 1180
原创 分布式数据处理解决方案
@Testpublic void testIndex() {int amount = 3;int index = 2;if(amount==index){index=0;}int[] ids = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9 ,10,11};for (int id : ids) {if (amount > 1) {
2015-07-15 19:11:45 743
原创 git 忽略提交文件.gitignore
## .gitignore for Grails 1.2 and 1.3# .gitignore for maventarget/*.releaseBackup# web application files#/web-app/WEB-INF# IDE support files/.classpath/.launch/.project/.settings/
2015-07-13 14:25:01 1882
原创 Spring boot 学习笔记—带来的好处(二)
Spring框架对于很多Java开发人员来说都不陌生。自从2002年发布以来,Spring框架已经成为企业应用开发领域非常流行的基础框架。有大量的企业应用基于Spring框架来开发。Spring框 架包含几十个不同的子项目,涵盖应用开发的不同方面。如此多的子项目和组件,一方面方便了开发人员的使用,另外一个方面也带来了使用方面的问题。每个子项 目都有一定的学习曲线。开发人员需要了解这些子项目和组件的
2015-07-12 23:25:21 8402
原创 Spring boot 学习笔记 ---分分钟构建一个web程序(一)
Springboot学习笔记1.分分钟创建一个简单springmvc项目基本环境jdk1.7+maven 3.3+eclipse使用创建一个maven项目2.添加pom依赖<project xmlns="http
2015-07-12 22:54:27 975
转载 Dos命令查看端口占用及关闭进程
Dos命令查看端口占用及关闭进程1. 查看端口占用2. 关闭进程3. 端口状态1. 查看端口占用在windows命令行窗口下执行:netstat -aon|findstr "8080" TCP 127.0.0.1:80 0.0.0.0:0 LISTENING 2448
2015-07-11 16:32:08 816
原创 GIT学习笔记
git 命令:git版本号: git --version设置用户名及邮箱地址 git config --global user.name "zhanghongwei" git config --global user.email zhanghongwei@shangpin.com自动创建一个工作目录并创建版本库 git init demo
2015-07-02 16:22:27 275
原创 定时任务框架搭建
定时任务框架搭建 1. 创建maven项目quartz-spring-demo2. 添加maven依赖配置<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=
2015-07-02 15:34:48 418
原创 spring 注解扫描bean配置
1. 在applicationContext.xml配置如下:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema
2015-07-02 14:36:05 2564
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人